Merge "Add a break statement in the for loop to optimize it."