public function read()
{
if (file_exists($this->filename)) {
$data = json_decode(file_get_contents($this->filename), true);
if (is_array($data)) {
return $data;
}
}
return array();
}