title: Lambda check for null on Array of objects - ArgumentNullException
body: <p>I am trying to get a string of <code>BranchCode</code> from an array of <code>UserBranches()</code>. For a specific user the list is nothing, therefore is causing an exception:</p>
  
  <blockquote>
    <p>System.ArgumentNullException: 'Value cannot be null.<br>
    Parameter name: source'</p>
  </blockquote>
  
  <p>I am using an <code>IIF</code> statement, but obviously does not help:</p>
  
  <pre><code>Dim sMatchedBranches = IIf(Not IsNothing(oUser.UserBranches),
                             oUser.UserBranches.Select(Function(z) String.Format("{0} - BranchCode", z.BranchCode)), "")
  </code></pre>
  
  <p>I have also used <code>oUser.UserBranches.Any</code>, but still the same exception. Any ideas?</p>
  
  <p>** To the duplicate recommendation, it's actually not since the question combines both the IIF and also an empty array with lambda expressions.</p>