add class_exist extension