validate cart not null