public function configHas($key, $withLayout = false) { $name = $withLayout ? $this->getLayout() : $this->getName(); return Helper::hasConfigKey($name, $key); }