title: How to echo a default value if value not set blade
body: <p>I would like to know what would be the best way to display a default value if the given value is not set. I have the following in a blade file (I can not guaranty that the key is set, it depends on a multitude of factors).</p>
  
  <pre><code>{{ $foo['bar'] }}
  </code></pre>
  
  <p>I would know if the following is the best way to go about it,</p>
  
  <pre><code>{{ (isset($foo['bar']) ? $foo['bar'] : 'baz' }}
  </code></pre>
  
  <p>or is there a better way to do this?</p>
  
  <p>Thanks :)</p>