Substituting `i !== -1` for `i >= 0` could cause problems as they are not equivalent. What if something causes `i` to be less then `-1`? Then we'd be trying to access an invalid index.