protected function getCacheKeys($file) { if (!file_exists($file)) { file_put_contents($file, null); } return json_decode(file_get_contents($file), true) ?: []; }