Avoid complex boolean chaining