Change to class_exists/interface_exists