code: function hasSome(tree, query) {
      if (_.find(tree, query)) return true;
      if (_.isObject(tree)) return _.some(tree, function (i) {
        return TreeTools.hasSome(i, query);
      });
    }
docs: Utility function to deep scan a tree and return if any of it contains a matching element
  This works the same as a deep version of the lodash `_.has()` function combined with `some()`
  This function will exit as soon as the first element matches
  @param {Object|array} tree The tree structure to search
  @param {Object|function} query A valid lodash query to run
  @return {boolean} Boolean indicating that at least one sub-element matches the query