Wrap if statement block in curly braces