public function tokenExpired() { if (empty($this->token_expires)) { return true; } return new Time($this->token_expires) < Time::now(); }