title: Laravel You requested 1 items, but there are only 0 items available
body: <p>I am getting row's column randomly to seed database, using eloquent :</p>
  
  <pre><code>$physician = SelectOption::where('select_option_group_id', 1)-&gt;pluck('name')-&gt;random();
  </code></pre>
  
  <p>it works if data exists in select_options table. But if it does not exists, it gives an error : </p>
  
  <blockquote>
    <p>You requested 1 items, but there are only 0 items available.</p>
  </blockquote>
  
  <p>I want to leave it empty, if it's empty. </p>