Checking if scopes are defined before displaying in user profile.