Add better hasRole method to User.