lint/dead-code/no-redundant-foreach-guard
In the dead-code set. Safe fix.
What it does
Remove unused if check to non-empty array before foreach of the array
Configuration
[lint.rules]
"dead-code/no-redundant-foreach-guard" = "error"
To skip it in some files or lines, add an override or an ignore comment.