resharper suggested a different if statement for making sure I don't add the same batch transaction more than one time.