Move parser check code to parser#run