Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/custom/plugins/BilobaDetailSelect/Subscriber/VariantPreselectSubscriber.php:79 Stack trace: #0 /var/www/html/custom/plugins/BilobaDetailSelect/Subscriber/VariantPreselectSubscriber.php(79): count() #1 /var/www/html/engine/Library/Enlight/Event/Handler/Default.php(90): BilobaDetailSelect\Subscriber\VariantPreselectSubscriber->onFrontendDetail() #2 /var/www/html/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #3 /var/www/html/engine/Library/Enlight/Controller/Action.php(218): Enlight_Event_EventManager->notify() #4 /var/www/html/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #5 /var/www/html/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() #6 /var/www/html/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() #7 /var/www/html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #8 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #9 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #10 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #11 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #12 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #13 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #14 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #15 /var/www/html/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #16 {main} thrown in /var/www/html/custom/plugins/BilobaDetailSelect/Subscriber/VariantPreselectSubscriber.php on line 79