checkfile removed IsErrorFunDef