hasParent(key) {
          let model = key && this.byKey(key);
          if (!model) return false;

          return !!this.firstRelationFK(model);
        }
/**
         * Given a model key return true if the model is dependent on a parent model as indicated by a foreign key (FK), false otherwise or on error
         * @param {string} key Model key
         */
Given a model key return true if the model is dependent on a parent model as indicated by a foreign key (FK), false otherwise or on error
@param {string} key Model key
Given a model key return true if the model is dependent on a parent model as indicated by a foreign key ( FK ) false otherwise or on error @param { string } key Model key
hasParent(key) {
          let model = key && this.byKey(key);
          if (!model) return false;
          return !!this.firstRelationFK(model);
        }
hasParent ( key ) { let model = key && this . byKey ( key ) ; if ( ! model ) return false ; return ! ! this . firstRelationFK ( model ) ; }
Given a model key return true if the model is dependent on a parent model as indicated by a foreign key (FK), false otherwise or on error
 @param {string} key Model key
Given a model key return true if the model is dependent on a parent model as indicated by a foreign key ( FK ) false otherwise or on error @param { string } key Model key