Safe replacement of a lot of `!count()` with `=== []`