use class_exists() instead of php_version()