title: Laravel: how to check if array is empty or not?
body: <p>let's say i have this query:</p>
  
  <pre><code> $schedules = [33,34];
   foreach ($schedules as $schedule) {
       $buses[] = DB::table("buses")-&gt;select('id', 'bus_number')
                        -&gt;where('station_id', $stations_id)
                        -&gt;whereNotNull('Driver_id')
                        -&gt;get();
   }
  </code></pre>
  
  <p>The data it is returning is empty like this:   <code>[[],[]]</code></p>
  
  <p>So, my question <strong>Is how to check if there is data in it or not?</strong></p>