corrected the TTF namespace test while calling class_exists