The one problem with doing (say) `x if x else ""` is that if x is False, the expression will evaluate to "", not x as you might intend.

However, that shouldn't be an issue here, so I'll go ahead and change it.