Style fix: put body of if within curly braces