title: How to check if list has at least one element without looping
body: <p>My question is quite clear.</p>
  
  <p>I have a list and I want to be sure that it has at least one not null element. And that too, without looping (performance measurement).</p>
  
  <pre><code>list.size()
  </code></pre>
  
  <p>is definitely not helpful here. Because if the list contains 5 null values, then also its size will be 5.</p>
  
  <p>Please note that, I'm not asking for a list that cannot contain <code>null</code>.</p>