title: Catch undefined index from MongoDB document Laravel
body: <p><strong>Hi everyone!</strong> The documents within my MongoDB collection can differ. Some have an extra embedded document called <code>Additional_Information</code>. I would like the web browser to display a table of the information within the <code>Additional_Information</code> when this is available, and to ignore it when it's not found! This should be the easiest if-statement, but I can't get it to work. I have tried this code: </p>
  
  <pre><code>@if (is_array($document['Additional_Information']))
        &lt;li&gt;&lt;a data-toggle="tab" href="#busco"&gt;Additional Information&lt;/a&gt;&lt;/li&gt;
  @endif
  </code></pre>
  
  <p>It does display the <code>Additional Information</code> tab when it is available. But when it is not, an <code>Undefined index: Additional_Information</code> it thrown! Does someone know how I can make this distinction between documents and catch when it's not there? </p>