It’s an array, so you’re looking for Count to test for contents.
I’d recommend
$foo.count -gt 0
The “why” of this is related to how PSH handles comparison of collection objects
It’s an array, so you’re looking for Count to test for contents.
I’d recommend
$foo.count -gt 0
The “why” of this is related to how PSH handles comparison of collection objects