getWidgetRepository()->findById($widget_id); if (!empty($widget)) : $taxonomyRepository = $widget->getTaxonomyRepository(); if ($taxonomyRepository->getCount() > 0) : $settings = $widget->getSettings(); $terms = $taxonomyRepository->getAll(); if (!empty($terms)) : ?>