Fatal error: Uncaught Error: Call to a member function count() on array in /srv/public_html/app/code/Hammer/Category/view/frontend/templates/widget/categories_widget.phtml:11 Stack trace: #0 /srv/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /srv/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Hammer\Category\Block\Widget\CategoriesSitemapWidget), '/srv/public_htm...', Array) #2 /srv/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/srv/public_htm...') #3 /srv/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #4 /srv/public_html/vendor/magento/module-widget/Model/Template/Filter.php(117): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 /srv/public_html/vendor/magento/module-widget/Model/Template/Filter.php(128): Magento\Widget\Model\Template\Filter->gener in /srv/public_html/app/code/Hammer/Category/view/frontend/templates/widget/categories_widget.phtml on line 11