If this loop breaks in the very first iteration, why a loop?