wrap in class_exists check