checks if discount or shipping actually exists before adding the lines.