Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the class has been defined
<?php class_exists(string $class, bool $autoload = true): bool
<?php         }




        if (!class_exists($cast) || !is_subclass_of($cast, BackedEnum::class)) {

            return self::$enumCache[$cast] = false;

        }