does a check for line_item.variant before accessing