Fixed spacing causing confusion around nested if statements