Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Checks whether the object is of a given type or subtype
<?php is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool
<?php         $failed = $this->failedRules() ?: [];

        $failedRules = array_keys(Arr::get($failed, $key, []));

        $failedRules = array_map(function (string $rule) {

            if (is_a($rule, ValidationRule::class, true) || is_a($rule, Rule::class, true)) {

                return $rule;

            }