Use pagehandler constant
fix(classes): make sure we have a user before calling isAdmin