Use array index 'i' only -after- bounds check