async isCartEmpty() {
    const isCartEmpty = await this.getCart();
    console.log(isCartEmpty);
    return isCartEmpty.length ? true : false;
  }
// function to check if the cart is empty.
function to check if the cart is empty.
function to check if the cart is empty .
async isCartEmpty() {
    const isCartEmpty = await this.getCart();
    console.log(isCartEmpty);
    return isCartEmpty.length ? true : false;
  }
async isCartEmpty ( ) { const isCartEmpty = await this . getCart ( ) ; console . log ( isCartEmpty ) ; return isCartEmpty . length ? true : false ; }
function to check if the cart is empty.
function to check if the cart is empty .