Modified the condition for syntax check status