title: Laravel 5.1 - checking if old('varName') is empty - php storm error - arbitrary
body: <p>I'm using <strong>old('varName')</strong> method to get the previous values of my fields in my view page, and PHPStorm is saying that there's an error in my code but when I run it, it's doing the right thing. Please see image below, <strong>is there something I need to worry about this?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Uje6m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uje6m.png" alt="enter image description here"></a></p>
  
  <p>The logic behind my code is if old('varName') is not empty, use the current data in the database, else use the old('varName') value.</p>
  
  <p>code:</p>
  
  <pre><code>{{    empty(Input::old('businessname')) ? $result['0']-&gt;lastname : old('businessname') }}
  </code></pre>
  
  <p>I'm using php 5.5.12</p>