public function valid_access_token($token) { return $token && isset($token->expires_in) && $token->expires_in > time() + 1200; }