Why does this need brackets around the condition but line 25 doesn't?