Add curly braces to conditional