class_exists

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     public function getSolutionForClass(string $solutionClass): ?Solution

    {

        if (! class_exists($solutionClass)) {

            return null;

        }