Especially when the expressions get more complex I actually don't like the duplication in both branches. And in this case it is actually doing something and conditionally appending something where the single if logic makes sense.

Therefore I will keep it as is.