public function remove($key) { $fileData = $this->getFileData(); if (!isset($fileData[$key])) { return; } unset($fileData[$key]); $this->flushFileData(); }