title: Taking objects from list only if not empty
body: <p>How can I take objects from A only if A is not empty? This is what I am trying, but I realized <code>q != null</code> will always be true as A is a List.</p>
  
  <pre><code>A.Where(q =&gt; q.Id == B.Id &amp;&amp; q != null)
  </code></pre>
  
  <p>I need to do the selection in one line only as this is inside a Select Statement.</p>