[TASK] Check lightweight cases before class_exists if possible