public function all() : array { if (!file_exists($this->fileName)) { return []; } return json_decode(file_get_contents($this->fileName), true); }