protected function prepareListImageStyle(array &$list)
    {
        foreach ($list as $id => &$item) {
            $item['directory_exists'] = is_dir($this->image_style->getDirectory($id));
        }
    }
protected function prepareListImageStyle(array &$list)
    {
        foreach ($list as $id => &$item) {
            $item['directory_exists'] = is_dir($this->image_style->getDirectory($id));
        }
    }
protected function prepareListImageStyle ( array & $ list ) { foreach ( $ list as $ id => & $ item ) { $ item [ 'directory_exists' ] = is_dir ( $ this -> image_style -> getDirectory ( $ id ) ) ; } }
Prepare an array of image styles
@param array $list
Prepare an array of image styles