Only use conditionals without {}s if it all fits on a single line.  So in this case, put the assert on the same line as the if, or put { after the conditional and } on a line by itself after the assert.  I would prefer the same line for something this short.

Also, put a space between the if and the (.

These are all just normal formatting rules we use.  I should make an indent script sometime.