public function isDeletable() { if ($this->fileInfo) { return parent::isDeletable(); } else { throw new NotFoundException(); } }