This variable seems unnecessary. You only ever need to check this just before writing it into the message body once.