Avoid usage of `Array.indexOf` function, which is not available on IE (and not yet part of any final ECMAScript standard).