in src/main/java/org/apache/sling/auth/oauth_client/OAuthTokenResponse.java [58:60]
public boolean hasValidToken() { return token.isPresent(); }