code: function exists(el, arr) {
    for (var i = 0; i < arr.length; i++) {
      if (arr[i].element.isEqualNode(el))
        return arr[i];
    }
    return false;
  }
docs: Check if element exists in a Array of NodeItems
  @param {NodeItem} current nodeItem to check
  @param {Array} array of NodeItems
  @returns {NodeItem} NodeItem exitent in array