How do I write this in a single line?
<p>I’m using Rails 4.2.5.  If I have this all by itself</p>

<pre><code>urls_hash[provider.capitalize]
</code></pre>

<p>I get the error, “undefined method `[]' for nil:NilClass”.  How do I write the above such that if the hash is empty, nothing is output, otherwise the given part of the hash is output?</p>