Powershell does not check for null inside an array. $a = 1,2,$null,4 $a.contains($null) $null -eq $a #per doc this would return true.