Stricter type comparisons for indexOf results