title: !empty() resulting true for value 0.0000
body: <p>I came across this situation, perhaps a logical error in the code.</p>
  
  <p>This is my code</p>
  
  <pre><code>foreach ($options as $option) {
  
  if (($option['max_value'] &gt; 0) &amp;&amp; $total_value &lt;= $option['max_value']) {
          $selected_options[] = $option['option_id'];
          continue;
      }
      if (($option['min_value'] &gt; 0) &amp;&amp; $total_value &gt;= $option['min_value']) {
          $selected_options[] = $option['option_id'];
      }
  }
  </code></pre>
  
  <p>This works fine. But if i replace(this is what i did earlier, so the logical error) </p>
  
  <pre><code>if(($option['min_value'] &gt; 0 ) ..... ) with
  
  if(!empty($option['min_value']) .... ) same for checking max_value.
  </code></pre>
  
  <p>But the issue is only while checking min_value</p>
  
  <p>Its treating 0.0000 to be not empty so i'm not getting the expected output. Can somebody please explain me what is wrong??</p>
  
  <p>$options values are coming from database, i have 2 rows</p>
  
  <ol>
  <li><p>min_value = 0.0000 max_value = 20.0000</p></li>
  <li><p>min_value = 21.0000 max_value = 0.0000</p></li>
  </ol>
  
  <p>Thanks!!</p>
  
  <p>Thank You all!! Its a lesson learnt!!!</p>