Why not move the condition directly into the if()