attempting to make the has role function happier if no roles are defined.