code: function basicIdentityIsSet(){
          return _.has(user, 'identities') && _.has(user.identities, 'basic') && !_.isEmpty(user.identities.basic);
      }
docs: Function that returns is the user.identities.basic property has been set to a value.