Make syntax check more compact