Added braces to single-line ifs