Split isAdmin($username) into seperate functions