How to check if endpoint is working when using GuzzleHTTP
<p>So I am working with <code>guzzleHttp</code> and I can get the responses that I am after and catch errors.</p>

<p>The only problem I am having is that if the base URI is wrong, the whole script fails... how can I do some sort of checking to make sure that the endpoint is actually up?</p>

<pre><code>$client = new GuzzleHttp\Client(['base_uri' =&gt; $url]);
</code></pre>