title: How to find an object nested in multi-level collection
body: <p>Lets say I have a <code>List&lt;Family&gt;</code> and each Family has a <code>List&lt;Child&gt;</code>.</p>
  
  <p>When I encounter a <code>Child</code> object in my code, how can I determine if the child is a part of any family?</p>
  
  <p><strong>Pseudo code:</strong></p>
  
  <pre><code>If Child not in any family
      // Do something with child
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p><strong>Example models:</strong></p>
  
  <pre><code>class Family
  {
    public List&lt;Child&gt; Children {get;set;}
    // Properties
  }
  
  class Child
  {
    // Properties
  }
  </code></pre>
  
  <p><strong>Example ViewModel:</strong></p>
  
  <pre><code>class FamilyViewModel
  {
    public List&lt;Family&gt; Families {get;set;}
  
    public bool ChildHasFamily(Child child)
    {
       // Determine if child is in any family or not
    } 
  }
  </code></pre>