Adding check for the return of the syntax check