src/Viserio/Component/StaticalProxy/Traits/ExistTrait.php
protected function exists($object, bool $autoload = true): bool
    {
        return \class_exists($object, $autoload)  ||
            \interface_exists($object, $autoload) ||
            \trait_exists($object, $autoload);
    }
protected function exists($object, bool $autoload = true): bool
    {
        return \class_exists($object, $autoload)  ||
            \interface_exists($object, $autoload) ||
            \trait_exists($object, $autoload);
    }
Checks various object types for existence.

@param mixed $object
@param bool  $autoload

@return bool