Array.prototype.indexOf does not accept a boolean as its second parameter.