Check Query_Stat class exists before call