Use Array#indexOf instead of for loop to determine presence.

Results in a slightly smaller minified file.