fix empty cart checking