public function hasWidgets($location = null, $zone = Zone::FRONTEND)
{
if ($location === null && $this->app['twig.options']['strict_variables'] === true) {
throw new \InvalidArgumentException('haswidgets() requires a location, none given');
}
return $this->app['asset.queue.widget']->hasItemsInQueue($location, $zone);
}