I think that usage of assert and SyntaxError exception is a bit inconsistent. 
I guess it would be fine to follow the pattern of other checks.
Actually, might justify a small helper a'la CheckSyntax method, taking an comparison and error message as an arguments (inside throwing SyntaxError if needed)