public static function exists($httpUri, callable $checkWith = null): bool
    {
        if ($httpUri instanceof self) {
            return $httpUri->hasDnsRecord($checkWith);
        }

        if (empty($httpUri) || !is_string($httpUri)) {
            return false;
        }

        try {
            return self::fromString($httpUri)->hasDnsRecord($checkWith);
        } catch (MalformedUri $murle) {
            return false;
        }
    }
public static function exists($httpUri, callable $checkWith = null): bool
    {
        if ($httpUri instanceof self) {
            return $httpUri->hasDnsRecord($checkWith);
        }

        if (empty($httpUri) || !is_string($httpUri)) {
            return false;
        }

        try {
            return self::fromString($httpUri)->hasDnsRecord($checkWith);
        } catch (MalformedUri $murle) {
            return false;
        }
    }
public static function exists ( $ httpUri , callable $ checkWith = null ) : bool { if ( $ httpUri instanceof self ) { return $ httpUri -> hasDnsRecord ( $ checkWith ) ; } if ( empty ( $ httpUri ) || ! is_string ( $ httpUri ) ) { return false ; } try { return self :: fromString ( $ httpUri ) -> hasDnsRecord ( $ checkWith ) ; } catch ( MalformedUri $ murle ) { return false ; } }
checks whether given http uri exists, i.e. has a DNS entry

@param   string    $httpUri
@param   callable  $checkWith  optional  function to check dns record with
@return  bool
@since   7.1.0
checks whether given http uri exists i . e . has a DNS entry