code: function(list, name) {
      if (Object.prototype.toString.call(list) === '[object Array]' && Object.prototype.toString.call(name) === '[object String]') {
        for (var i = 0; i < list.length; i++) {
          if (list[i] === name) {
            return true;
          }
        }
      }
      return false;
    }
docs: Internal function for checking if a string is contained in a given array