title: Checking if column is null Laravel
body: <p>I have this column ('time_out') in a table of my database:</p>
  <p><a href="https://i.stack.imgur.com/VJgx5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VJgx5.png" alt="enter image description here" /></a></p>
  <p>As you can see the <code>time_out</code> is <code>null</code>, and when I do this query:</p>
  <pre><code>$checkertimeout = Attendance::where('emp_id', $request-&gt;emp_id)
                    -&gt;where('attend_date', $date)-&gt;get(['time_out']);
  </code></pre>
  <p>I get this output:</p>
  <blockquote>
  <p>[{&quot;time_out&quot;:null}]</p>
  </blockquote>
  <p>But when I use it in an <code>if-else statement:</code></p>
  <pre><code>if ($checkertimeout-&gt;isEmpty())
  {
      echo &quot;works&quot;;
  }
  else
  {
      echo &quot;wont work&quot;;
  }
  </code></pre>
  <p>It display <strong>won't work</strong>.</p>
  <p>Any help is appreciated, I'm new to Eloquent query :)</p>