isUser method

bool isUser()

Returns true if a user is logged in, false otherwise.

Implementation

bool isUser() {
  return loggedInUser != null;
}