Powershell Check If Array Of Objects Definition