Check if any actor in party has any skills of a certain type

Exactly what it says in the title, I'm trying to create events that check if a certain skill type is known by anyone in the party, but can't for the life of me figure out how to script this. I know there's default functionality for checking for individual skills, but it would be more useful for me to be able to use skill types in this way.

I do have the tier 0 & 1 VisuStella plugins installed, if that makes any difference.
Code:
$gameParty.members().some(actor => actor.addedSkillTypes().includes(X))

where X is the number of the type you're looking for.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-any-actor-in-party-has-any-skills-of-a-certain-type.165523/