JSHint would be sad here. Include curly braces and newlines, even for one-line if statements.