magento2 – Magento 2.4.1 If shopping cart is not empty place a Go To Shopping Cart button next to Add To Cart on Product Detail page

When the shopping cart is NOT empty, I want a button next to the Add To Cart button on the product detail page and have it go to the Shopping Cart

File using to override is:

Below is my current code without the check shopping cart for items code. I want to only show the Go To Cart button if something is in the cart.

<div class="actions">
        <button type="submit"
                title="<?= $block->escapeHtmlAttr($buttonTitle) ?>"
                class="action primary tocart"
                 style="width:50%;" disabled>
            <span><?= $block->escapeHtml($buttonTitle) ?></span>
        <button type="button" onclick="location.href=""" class="action secondary tocart"
                 style="width:49%; margin-right:0;">
            <span>Go To Cart</span>
        <?= $block->getChildHtml('', true) ?>

I’ve tried the various solutions out there including Magento 2 add custom button next to cart button and even checking it using the cart helper like and

$helper = $this->helper('MagentoCheckoutHelperCart');
$helper->getItemsCount(); ?>

Definitely not working.