More appropriate syntax check