public function initInfoFile() { $file = $this->getInfoFilePath(); if (file_exists($file)) { unlink($file); } file_put_contents($file, '{}'); }