Only start syntax check if the mode is enabled