if (getCoreContext().getUserCount() == 0) {
if (getCoreContext().getUsersCount() == 0) {
    public void pageValidate(PageEvent event_) {        if (!isLoginRequired()) {            return;        }        // If there are no users, then we need to create the first user        if (getCoreContext().getUserCount() == 0) {            throw new PageRedirectException(FirstUser.PAGE);        }                    // If there are users, but no one is logged in, then force a login        IPage page = getPage();        Visit visit = getVisit();                if (visit.getUserId() == null) {            redirectToLogin(page);        }                // If the logged-in user is not an admin, and this page is restricted, then         // redirect the user to the home page since they are not worthy.        // (We should probably use an error page instead of just tossing them home.)        if (!visit.isAdmin() && isRestricted()) {            throw new PageRedirectException(Home.PAGE);        }    }