getCookieCategoryKey = $getCategoryKey; } /** * @param string $name * @param bool $forceReload * @return bool */ public function execute(string $name, bool $forceReload = false): bool { /** * As category_key is required field for cookie, if GetCategoryKey returns '' it means that cookie unknown * So, we optimize request count to database, because GetCategoryKey has local cache */ return (bool) $this->getCookieCategoryKey->execute($name, $forceReload); } }