I do not understand the reason of this for loop on an array with a single element