You should certainly be able to have multiple ORs.
The only reason it would “skip” checking is if one of the earlier conditions was true.
if (this || that || other) { }
If “this” is true, then it doesn’t have to check “that” or “other” at all.
If “that” is true, then it doesn’t have to check “other” at all.
If “other” is true, it should work fine. Multiple ORs are ok.
It would be critically important here to make sure your inputs are sane. For example is it possible that a $word could be an empty string? Or not a string at all?
And make triple sure there isn’t a typo/syntax error somewhere.