code: public boolean hasUser(String userId) {
          String normalized = normalizerUserName(userId);
          return loginToUser.containsKey(normalized) || emailToUser.containsKey(normalized);
      }
docs: Checks if user exists.
  
  @param userId the user id, which can be an email or the login.
  @return true, if user exists.