title: Empty or null variables in Laravel blade
body: <p>I make two arrays (<strong>A1 &amp; A2</strong>) in server side by result of <code>-&gt;paginate(20)</code> and send theme to index blade via two variables. depended on contents some times all the first 20 posts is based of <strong>A1</strong> array, so page returns error <strong>Undefined variable: A2</strong> . </p>
  
  <p>Even while <strong>A2</strong> is completely <code>null</code> (and not only because of pagination), I want to handle it in blades to only returns empty and not errors. </p>
  
  <p>I tried <code>@if($A2)</code> , <code>@if(!is_null($A2))</code> , <code>@empty</code> checks on blade but still same error occurs.</p>
  
  <p>Also i make <code>$A2="";</code> on sever side before operations and then page returns <strong>Trying to get property of non-object</strong> .</p>