title: Null and Empty List Check in Java 8
body: <p>I want to write an equivalent code for  this using Java 8 features of Streams or Optional 
  My idea is basically to check if the List has some value returned from a Query or null /empty</p>
  
  <pre><code>if (resultList != null &amp;&amp; resultList.size() &gt; 0) {
                  retVal = true;
              }
  </code></pre>