Checking existence of setting

@param string $section
@param string $key

@return bool
184906
public function has($section, $key): bool
    {
        $setting = $this->get($section, $key);

        return !empty($setting);
    }
584719
public function setProperty( $key, $value, $section = NULL )
	{
		if( $this->usesSections() )
		{
			if( $this->hasSection( $section ) && $this->hasProperty( $key, $section ) )
				$this->properties[$section][$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE, $section );
		}
		else
		{
			if( $this->hasProperty( $key ) )
				$this->properties[$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE );
		}
		return is_int( $this->write() );
	}
1101695
public function get($section, $key)
    {
        foreach ($this->lines as $line) {
            if ($line['type'] != 'entry') {
                continue;
            }
            if ($line['section'] != $section) {
                continue;
            }
            if ($line['key'] != $key) {
                continue;
            }
            return $line['value'];
        }

        throw new RuntimeException('Missing Section or Key');
    }
1152647
private function getCacheKey($section, $key, ?string $owner = null)
    {
        return 'phpmob-settings.' . ($owner
                ? sprintf('%s.%s.%s', $section, $key, $owner)
                : sprintf('%s.%s', $section, $key)
            );
    }
9388
public function activate($key, $section = null)
    {
        if (is_null($section)) {
            $pieces = explode('.', $key);
            $section = $pieces[0];
            $key = $pieces[1];
        }
        return $this->model->activateSetting($section, $key);
    }
434499
public function deactivateProperty( $key, $section = NULL)
	{
		if( $this->usesSections() )
		{
			if( !$this->hasProperty( $key, $section ) )
				throw new InvalidArgumentException( 'Key "'.$key.'" is not existing in section "'.$section.'"' );
			if( !$this->isActiveProperty( $key, $section ) )
				throw new LogicException( 'Key "'.$key.'" is already inactive' );
			$this->disabled[$section][] = $key;
			return is_int( $this->write() );
		}
		else
		{
			if( !$this->hasProperty( $key ) )
				throw new InvalidArgumentException( 'Key "'.$key.'" is not existing' );
			if( !$this->isActiveProperty( $key ) )
				throw new LogicException( 'Key "'.$key.'" is already inactive' );
			$this->disabled[] = $key;
			return is_int( $this->write() );
		}
	}
661125
public function __isset($key)
    {
        if (parent::__isset($key) === true) {
            return true;
        }

        if (isset($this->viewBag[$key]) === true) {
            return true;
        }

        return isset($this->settings[$key]);
    }
999298
private function filter(Collection $settings, string $section, string $key, ?string $owner)
    {
        return $settings->filter(
            function (SettingInterface $setting) use ($section, $key, $owner) {
                return $section === $setting->getSection()
                    && $key === $setting->getKey()
                    && $owner === $setting->getOwner();
            }
        );
    }
815574
public boolean isNullOrEmpty(String section, String key) {
	String value = getKeyValueEL(section, key);
	return (value == null || value.length() == 0);
    }
1287981
public function sectionExists(string $section): bool
    {
        return (bool) trim($this->view->yieldContent($section));
    }
970235
public function __isset($key)
    {
        $k = strtolower($key);
        //check for specialised discovery method
        $methodName = 'has' . ucfirst($k);
        if (method_exists($this, $methodName)) {
            return $this->$methodName();
        } elseif (array_key_exists($k, $this->buildItems) && !is_null($this->buildItems[$k])) {
            return true;
        }
        
        return false;
    }
1085712
function __isset($key)
    {
        $isset = false;
        try {
            $isset = (parent::__get($key) !== null);
        } catch(\Exception $e) { }

        return $isset;
    }
1062281
protected function concat(string $section, string $key)
    {
        if ($section === '') {
            return $key;
        }
        if ($key === '') {
            return $section;
        }
        return $section . $this->sectionKeyDelimiter . $key;
    }
273489
private function doGetSection($section)
    {
        return isset($this->config[$section]) ? $this->config[$section] : null;
    }
364538
public function removeSection($section)
    {
        if ($has = $this->hasSection($section)) {
            unset($this->sections[$section]);
        }

        return $has;
    }
819575
public function findSection($section)
    {
        if (isset($this->sectionMap[$section])) {
            return $this->sectionMap[$section];
        }

        return false;
    }
167313
public function getSection($key)
    {
        if (false === $this->hasSection($key)) {
            throw new ConfigException(sprintf('"%s" is not a section', $key));
        }

        // do not return the parent object if we were subclassed, but an actual
        // "Config" object to avoid copying in the defaults if set
        return new self($this->configData[$key]);
    }