you can fold this condition into the outer if statement