Script Call to check multiple Variables for the same Value

I am using "BD_CustomShops" for something and you can create conditions via script calls like $gameParty.hasItem($dataItems[3]) to define if an item even shows up in it. This also works for variables.

I am trying to set up a shop for which 5 random items are chosen to be available out of all the items. To this end 5 variables generate 5 random numbers and if any of them rolls, say, a 4, the item I gave 4 to will show up in the shop.

Here is my problem:
This is an example of the condition I am currently using;
$gameVariables.value(12) === 1 || $gameVariables.value(13) === 1 || $gameVariables.value(14) === 1 || $gameVariables.value(15) === 1 || $gameVariables.value(16) === 1
This is, obviously, somewhat very annoying to set up for every single item in the shop. I have to exchange all fives 1s with the another one and this is bound to lead to me messing up here and there.
And because of how BD_CustomShops is set up, for-loops and if-statements do not seem to work.

What I am looking for:
I just want a way to shorten the condition-script into something that only requires me to change one number for each item.
I guess something by the logic of $gameVariables.value(12||13||14||15|16) === 1 but in working.
Is there any way for it?
JavaScript:
[12, 13, 14, 15, 16].some(varId => $gameVariables.value(varId) === 1)
JavaScript:
[12, 13, 14, 15, 16].some(varId => $gameVariables.value(varId) === 1)
Yes, it works! HUGE THANKS!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-check-multiple-variables-for-the-same-value.176577/