private static function typeExists($type, $autoload = false)
    {
        return class_exists($type, $autoload)
            || interface_exists($type, $autoload)
            || trait_exists($type, $autoload);
    }
private static function typeExists($type, $autoload = false)
    {
        return class_exists($type, $autoload)
            || interface_exists($type, $autoload)
            || trait_exists($type, $autoload);
    }
private static function typeExists ( $ type , $ autoload = false ) { return class_exists ( $ type , $ autoload ) || interface_exists ( $ type , $ autoload ) || trait_exists ( $ type , $ autoload ) ; }
Checks whether a given type exists

@param string $type
@param bool   $autoload

@return bool
Checks whether a given type exists