i !== -1 is faster.