title: C# - Check if the RESULT returned by a linq query on a DataTable has rows
body: <p>I usually query datatables with linq to filter data such as:</p>
  
  <pre><code>var plan = from p in planData.AsEnumerable()
  let rnk = p.Field&lt;decimal?&gt;("RANK")
  let spd = p.Field&lt;string&gt;("SPEED")
  where rnk.HasValue
  &amp;&amp; rnk == Convert.ToInt32(rank)
     &amp;&amp; spd == speed
  select p;
  </code></pre>
  
  <p>where <code>planData</code> is a datatable. The problem is that I have no <em>simple</em> way of check if the result returns anything. I cannot use any useful methods at all (like <code>ToList</code> , <code>AsEnumerable</code>) on the <code>plan</code> variable. All I can do is try to loop and see if there were anything returned. </p>
  
  <p>Any ideas how I can get around this ? Maybe there is another way to select data from a datatable ?</p>