we prefer to write this as `while i not in indices and i >= 0:`