Is this test necessary knowing that it is also the looping condition of the 'for' just below ?