Id Or condition

So I've got my code working fine, however now it's on a server I've noticed a glitch. It's poorly optimised. So I have it going Execute as @a if entity @s[ActiveEffect[{Id:39}]] That's not the whole code but what I'm asking is, is there a way I can put multiple Ids in the ActiveEffect area and have them work as an OR instead of an AND.
Continue to help post