Added curly braces to if statement

Code standards fix!