code: function add(interface){
      var i = arr.collection,
          found = false;
      while (i--) {
          if(interface.name === collection[i].name){
              found = true;
          }
      }
      if(!found){ collection.push( interface ) };
  }
docs: add an plugin directly