Conditional parenthesis close