Use class_exists instead of require