just changing the 'or' into a '||' fixes the problem