function(string $path) { if ($thumbs = $this->getThumbsPath($path)) { foreach($thumbs as $th){ if(file_exists($th)) { unlink($th); } } } }