Don't rely on Array.prototype.indexOf for testing containment (not in IE8)