public function get_status() { if (!file_exists($this->get_status_filepath())) { return ''; } $status = json_decode(file_get_contents($this->get_status_filepath())); if (!empty($status->status)) { return $status->status; } return ''; }