title: Returning default list if the list is empty using java 8 Streams?
body: <p>Is there any way so that the below can be performed as one set of stream operations, instead of explicitly checking <em>if recommendedProducts is empty then return default list else return the filtered list</em>?</p>
  
  <pre><code>public List&lt;Product&gt; getRecommendedProducts() {
      List&lt;Product&gt; recommendedProducts 
          = this.newProducts
                .stream()
                .filter(isAvailable)
                .collect(Collectors.toList());
  
      if (recommendedProducts.isEmpty()) {
          return DEFAULT_PRODUCTS;
      }
  
      return recommededProducts;
  }
  </code></pre>