title: Disable bxSlider if there is only one slide
body: <p>I have a slider on all of my pages, but I would like to disable it if there is only one slide. I've tried a few different things but can't seem to get it to work correctly. Here is the code I am using:</p>
  
  <pre><code>    var slider = $('.bxslidertwo').bxSlider({
      pager: true,
      pagerType:'full',
      autoHidePager: true,
  
  });
  
  var numberOfImages = $('.bxslidertwo li').length;
  
  if (numberOfImages &gt; 1) {
      slider.reloadSlider();
  } else {
      slider.destroySlider();
  }
  </code></pre>
  
  <p>Any help that can be offered with this would be greatly appreciated. </p>