public function checkAccess(AccountInterface $account) {
    $cart = $this->cartStorage;

    if (empty($cart) || $cart->isEmpty()) {
      return AccessResult::forbidden('Invalid cart');
    }

    return AccessResult::allowedIfHasPermission($account, 'access checkout');
  }