This is not an associative array, this is a regular array, but the answer is the same. Use .Count and compare with 0.
An associative array is called [hashtable] in PowerShell, and its literal form uses @{} (curly braces).
@{}.Count -eq 0 # hashtable (associative array) @().Count -eq 0 # array
source share