public function isDeletable($imagePath) { return $this->getImageRepository()->getImageFileReferencesCount($imagePath) <= 1; }