define([], function () {
  return {
    hasLoggedInUser: function() {
        return !!(this.profile && this.profile.get('selected_identity'));
    },
    profile: null
  }
});

import { hasLoggedInUser } from 'profilePredicate';

export default {
    hasLoggedInUser: function() {
        return hasLoggedInUser(this.profile);
    },
    profile: null
}

Use utility predicate in logged in user check
Use utility predicate in logged in user check
