MZ Formula to test if enemy has more than 1 debuff?

Is there a practical way other than the || to test if an enemy has a debuff among several? Or at least has any debuff at all?

b.isDebuffAffected(0)
works for one debuff but how about testing if it has any debuff among ATK, DEF, MAT, MDF or even any debuff at all?
[...Array(8).keys()].some(param => b.isDebuffAffected(param)) will return true if the given enemy has any debuff.

If you only want to check for specific ones, just put the param IDs in the initial array, so instead of [...Array(8).keys()] you'd have [2, 3, 4, 5] for ATK/DEF/MAT/MDF.
Worked like a charm, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/formula-to-test-if-enemy-has-more-than-1-debuff.136804/