public function unserializeCollection($collection)
    {
        if (is_array($collection)) {
            return array_map(function ($value) {
                return maybe_unserialize(reset($value));
            }, $collection);
        }

        return maybe_unserialize($collection);
    }
public function unserializeCollection($collection)
    {
        if (is_array($collection)) {
            return array_map(function ($value) {
                return maybe_unserialize(reset($value));
            }, $collection);
        }

        return maybe_unserialize($collection);
    }
public function unserializeCollection ( $ collection ) { if ( is_array ( $ collection ) ) { return array_map ( function ( $ value ) { return maybe_unserialize ( reset ( $ value ) ) ; } , $ collection ) ; } return maybe_unserialize ( $ collection ) ; }
Unserialize data collection.

@param  array $collection

@return array
Unserialize data collection .