code: function(collection, cb, ignoreCollection, cbName) {
      if (!ignoreCollection) {
        if (!lHlp.isDefined(collection) || !lHlp.isDefined(cb)) {
          return true;
        }
      }
  
      if (!lHlp.isFunction(cb)) {
        cbName = lHlp.defaultTo(cb, 'cb');
        $log.error(errorHeader + cbName + ' is not a function');
        return true;
      }
  
      return false;
    }
docs: END COPY fron underscore