protected function getFileContent() { if (file_exists($this->getFilename())) { $content = file_get_contents($this->getFilename()); if (false === $content) { return; } $content = json_decode($content, true); if (!is_array($content)) { return; } return $content; } }