title: More graceful solution to nested Linq queries?
body: <p>I have a set of nested linq queries that are used to get a property from a list of properties. It works great as-is, but it has one caveat. I have to put in error handling just in-case there isn't a suitable match. Is there are similar method of accomplishing what the following code does without having to use a try-catch block?</p>
  
  <pre><code>try
  {
      organization =
      _orgs.FirstOrDefault(n =&gt; 
          n.OrganizationFields.FirstOrDefault(nn =&gt; 
              nn.Key == "customer_id").Value.ToString() == id);
  }
  catch (InvalidOperationException)
  {
      return null;
  }
  catch (NullReferenceException)
  {
      return null;
  }
  </code></pre>