Core: Replaced possible bug in logic expression

It was a bitwise OR before, when it should have been a logic OR