Bug fix. Array.prototype.indexOf does not accept a boolean as its 2nd argument.

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf