private function extractImagesArray($source)
    {
        $sizes  = array_get($source, 'sizes.size');
        $images = array_where($sizes, function ($key, $value) {
            return in_array($value['label'], ['Original', 'Small 320']);
        });

        return array_fetch($images, 'source');

    }
private function extractImagesArray($source)
    {
        $sizes  = array_get($source, 'sizes.size');
        $images = array_where($sizes, function ($key, $value) {
            return in_array($value['label'], ['Original', 'Small 320']);
        });

        return array_fetch($images, 'source');

    }
private function extractImagesArray ( $ source ) { $ sizes = array_get ( $ source , 'sizes.size' ) ; $ images = array_where ( $ sizes , function ( $ key , $ value ) { return in_array ( $ value [ 'label' ] , [ 'Original' , 'Small 320' ] ) ; } ) ; return array_fetch ( $ images , 'source' ) ; }
Extracts an array of images from the photo array and returns them.

@param  array $source
@return array
Extracts an array of images from the photo array and returns them .