public function delete($key) { $fileName = $this->getFileName($key); return is_file($fileName) && unlink($fileName); }