shortcut logic in boolean op