check cart type