Add class_exists support.