Shouldn't this line suffice, IOW the above static check is unnecessary? I don't see how _index can ever be -1.