Zend certified PHP/Magento developer

Magento 2.3.4 custom module – Uncaught Error: Call to a member function setData() on boolean

I’ve got a custom Magento 2 module that is causing issues on newly created products. All of the existing ones seem to be okay. I’m running Magento 2.3.4

in my template: /app/design/frontend/MySite/MyTheme/Magento_Catalog/templates/product/view/attributes.phtml

< ?php
    $_helper = $this->helper('MagentoCatalogHelperOutput');
    $_product = $block->getProduct()
?>

$block->getChildBlock("MyBlock")->setData("my_data", $_product);
echo $block->getChildHtml('MyBlock', false); 

The line that reads $block->getChildBlock("MyBlock")->setData("my_data", $_product); is throwing the following error:

PHP Fatal error: Uncaught Error: Call to a member function setData() on boolean in /var/www/mysite.com/app/design/frontend/MySite/MyTheme/Magento_Catalog/templates/product/view/attributes.phtml

Any idea why this would work for all products but newly added ones? The contents of the block being referenced are irrelevant at this point as it’s not making it far enough to load it.