Using class_exists instead of version_compare for future-proofing