Wrap if blocks with more than one statement in a div