Redundant line integrated into while condition