title: Jquery, What does slice return on failure?
body: <p>I can't find this anywhere, how do you check to see if slice is returning elements still in the list? Like <code>$('.class').slice(n-th,n-th);</code></p>
  
  <p>When n-th variables are increased throughout the index of the return class by slicing, how do you know when slice returns on an invalid index? Hope I explained that well.</p>
  
  <p>Here is the example code of what I'm trying to accomplish:</p>
  
  <pre><code>$(window).scroll(function() {
      if(!($('embed').slice(p1,p2).show())){
          $(window).unbind('scroll');
      }
      ++p1;++p2;
  }
  </code></pre>
  
  <p>Also, why is my event not unbinding? </p>
  
  <p>Thanks for any assistance :) </p>