Moving isAdmin() flag up to the API