Fixed isAdmin() check