title: Compare-Object on $null array
body: <p>Is there a way for the Compare-Object cmdlet to anticipate on $Null values?</p>
  
  <p>For example when I'm trying to compare 2 values like this:</p>
  
  <pre><code>Compare-Object -ReferenceObject $Value1 -DifferenceObject $Value2 
  </code></pre>
  
  <p>I commonly get the following error: </p>
  
  <pre><code>Cannot bind argument to parameter 'ReferenceObject' because it is null
  </code></pre>
  
  <p>My question is: Is there a way to say: if either one of them equals $null ; do something</p>