Checks, that option exists in config.

@param string $name Option name.

@return void
@throws ConfigException Thrown when option with a given name doesn't exist.
725
protected function assertOptionName($name)
	{
		if ( !isset($this->options[$name]) ) {
			throw new ConfigException(
				'Option "' . $name . '" doesn\'t exist in configuration',
				ConfigException::TYPE_NOT_FOUND
			);
		}
	}
81908
public static function has($name)
    {
        if (!strpos($name, '.')) {
            return isset(self::$config[strtolower($name)]);
        }

        $name = explode('.', $name, 2);
        return isset(self::$config[strtolower($name[0])][$name[1]]);
    }
781134
protected function dropEnumIfExists(string $name): void
    {
        unset($this->enumerations[$name]);

        $connection = $this->getConnection();
        if ($connection->getDriver()->getName() === 'pdo_pgsql') {
            $name = $connection->quoteIdentifier($name);
            $sql  = "DROP TYPE IF EXISTS $name;";
            $connection->exec($sql);
        }
    }
235918
public function removeGlobalConfig(string $name)
    {
        if (isset($this->globalConfigs[$name])) {
            unset($this->globalConfigs[$name]);
        }
    }
1035324
private function _checkOption($name)
    {
        if ($name == 'list')
            return true;

        $names = [
            'store' => 'add',
            'update' => 'edit',
            'delete' => 'delete',
            'order' => 'order',
            'export' => 'export'
        ];

        return $this->crudeSetup->haveOption($names[$name]);
    }
206837
public function setConfig(string $name, $value): void
    {
        if (array_key_exists($name, $this->configs)) {
            $this->configs[$name] = $value;
        }
    }
83634
public function hasConfigFile($name)
    {
        $filename = $this->getConfigFilename($name);
        return is_file($filename) && is_readable($filename);
    }
179502
public function hasMethod($name)
    {
        return method_exists($this, $name)
            || isset($this->hooks['method-'.$name])
            || isset($this->app->hooks['global-method-'.$name]);
    }
312842
public function hasParameter($name)
    {
        if (array_key_exists($name, $this->parameters)) {
            if (null !== $this->parameters[$name]['value']) {
                return true;
            }
        }

        return false;
    }
1195566
protected function existsInCondition($name) {
        foreach ($this->conditionColumns as $column) {
            if (0 === strpos($column, $name . '.')) {
                return true;
            }
        }
        return false;
    }
153935
public function has(string $name) : bool
    {
        if (Arr::keyExists($this->registry, $name)) {
            return true;
        } else {
            return false;
        }
    }
383315
public function hasConfigurator(string $name): bool
    {
        if (isset($this->configurators[$name])) {
            return true;
        }

        if (isset($this->serviceIds[$name])) {
            return true;
        }

        return class_exists($name) && \in_array(FieldSetConfigurator::class, class_implements($name), true);
    }
346264
public function exist($name){
		$name=strtolower($name);
		return (isset($this->events[$name]) && sizeof($this->events[$name]));
	}
1213534
public function hasMethod($name)
    {
        return method_exists($this, $name)
            || (isset($this->_hookTrait) && $this->hookHasCallbacks('method-'.$name))
            || $this->hasGlobalMethod($name);
    }
295167
protected function checkForReservedClassName($name)
    {
        $name = trim(strtolower($name));

        if (in_array($name, config('pxlcms.generator.reserved', []))) {
            throw new \InvalidArgumentException("Cannot use {$name} as a module name, it is reserved!");
        }
    }
192056
public function exists(string $name): bool
    {
        $this->autoload();

        return \array_key_exists($name, $this->env);
    }
656565
public function setOption($name, $value) {
		$this->validateName($name);
		$this->config[$name] = $value;
	}