I\'m using an array variable in PowerShell 2.0. If it does not have a value, it will be $null, which I can test for successfully:
PS C:\\> [array]$foo =
You can reorder the operands:
$null -eq $foo
Note that -eq in PowerShell is not an equivalence relation.
-eq