MainFrm.cpp: simplify check