I'd be happy to help improve that PowerShell code, but I only see a single line with an if statement. Could you share the complete code block you'd like me to review?
From what I can see, that line could be written more idiomatically as:
powershell
if ($sqlRecords) {
In PowerShell, you don't need the explicit -ne $null check since PowerShell treats null, empty arrays, and empty strings as falsy values. However, without seeing the full context and what comes after the if statement, I can't provide more specific suggestions for improvement.