Поддержка WooCommerce PHP Notice:Trying to access array offset on value of type… content-product.php

  • Добрый день, хочу убрать PHP Notice из debug.log
    PHP Notice: Trying to access array offset on value of type bool in /woocommerce/content-product.php on line 45

    Часть содержимого content-product.php
    <li <?php wc_product_class( », $product ); ?>>
    <?php do_action( ‘woocommerce_before_shop_loop_item’ ); ?>
    <?php //$loopImg = get_field(‘loop-product-img’, $product->get_id()); ?>
    line 45 <?php $loopImg = get_field(‘cat_file’, $product->get_id()); $rr = $loopImg[‘sizes’]; ?>
    <?php if ($loopImg) : ?>
    » alt=»<?= $loopImg[‘alt’]; ?>» />
    <?php else : ?>
    <?php do_action( ‘woocommerce_before_shop_loop_item_title’ ); ?>
    <?php endif; ?>
    <div class=»wrapper-sh»>
    <?php
    do_action( ‘woocommerce_shop_loop_item_title’ );
    do_action( ‘woocommerce_after_shop_loop_item_title’ );
    do_action( ‘woocommerce_after_shop_loop_item’ );
    ?>
    </div>