title: Lambda expression - add to collection if not present
body: <p>I have just started learning lambda expressions.</p>
  
  <p>Is it possible to simplify the following code down further:</p>
  
  <pre><code>        Customer customer = Customers.FirstOrDefault(c =&gt; c.ID == 3);
          if (customer == null)
          {
              customer = new Customer() { FirstName = "Ben", LastName = "Foster", ID = 3 };
              Customers.Add(customer);
          }
  
          // do something with customer
          customer.CreateProfile();
  </code></pre>
  
  <p>Essentially I want to check if an object exists in a collection. If it doesn't I want to create it, add it to the collection and use it later on.</p>
  
  <p>Thanks
  Ben</p>