Another solution would be to initialize the variable as an array of objects:
[psobject[]]$ArrayOfObjects = $null