email: Simplified nesting of if statements in *_doing() functions