Checks for indexEnd() before entering this section and yields when indexEnd() is reached below.