Added braces to the conditional.