Powershell Check If Array Is Null Mysql Connector Python