Fatal error: Uncaught Error: Call to a member function count() on boolean in /home/allusport/dev/app/code/Magebees/Promotionsnotification/view/frontend/templates/bar.phtml:10 Stack trace: #0 /home/allusport/dev/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/allusport/dev/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magebees\Promotionsnotification\Block\View\Bar\Interceptor), '/home/allusport...', Array) #2 /home/allusport/dev/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Element\Template->fetchView('/home/allusport...') #3 /home/allusport/dev/vendor/magento/framework/Interception/Interceptor.php(138): Magebees\Promotionsnotification\Block\View\Bar\Interceptor->___callParent('fetchView', Array) #4 /home/allusport/dev/vendor/magento/framework/Interception/Interceptor.php(153): Magebees\Promotionsnotification\Block\View\Bar\Interceptor->Magento\Framework\Interception\{closure}('/home/alluspor in /home/allusport/dev/app/code/Magebees/Promotionsnotification/view/frontend/templates/bar.phtml on line 10