Properly handle both populated and unpopulated roles in hasRole(). Close #11