Check if a plugin is selected (enabled).

@param \Concrete\Core\Editor\Plugin|string $key the plugin to be checked (or its handle)

@return bool
188545
public function isSelected($key)
    {
        $key = $key instanceof Plugin ? $key->getKey() : $key;

        return in_array($key, $this->selectedPlugins);
    }
466886
public function isActive($key)
    {
        switch ($key) {
            case 'codeCoverage':
                $isActive = extension_loaded('xdebug');
                break;
            case 'runSeleniumTests':
                $isActive = $this->seleniumService->isSeleniumServerRunning();
                break;
            case 'thisSettingIsAlwaysInactive':
                $isActive = false;
                break;
            default:
                // If the given setting is not covered by any of the cases, it should be considered active.
                $isActive = true;
        }

        return $isActive;
    }
1351541
private function isExclude(string $key): bool
    {
        if (!empty($this->excludes) && in_array($key, $this->excludes, true)) {
            return true;
        }

        if (!empty($this->only) && !in_array($key, $this->only, true)) {
            return true;
        }

        return false;
    }
683255
public static function isEnabled($plugin)
    {
        $plugin_list = static::getPluginList();

        return (is_array($plugin_list) && in_array($plugin, $plugin_list)) ? true : false;
    }
955785
public function containsKey(string $key): bool
    {
        if (isset($this->orgData[$key])) {
            return ! isset($this->removeAttributes[$key]);
        } else {
            return isset($this->addAttributes[$key]);
        }
    }
469164
public function has(string $key): bool
    {
        if (strpos($key, '.') != false) {
            return $this->getNested($key) != null;
        }

        return array_key_exists($key, $this->settings);
    }
220977
public function containsKey($key)
    {
        if (!$this->enabled)
            return false;

        $has_key = array_key_exists($this->key($key), $this->cache);

        // $this->Logger->debug("Cache contains {$key}? " . (($has_key) ? 'TRUE' : 'FALSE'));

        return $has_key;
    }
76553
public function __isset($key)
    {
        $getter = 'get' . str_replace('_', '', $key);

        return method_exists($this, $getter) && null !== $this->__get($key);
    }
1300431
public function has($key)
    {
        return (bool) $this->redis->exists($this->redis->prefix($key));
    }
673091
public function has($key)
	{
		$key = $this->id($key);

		if (eaccelerator_get($key) !== null)
		{
			return false;
		}

		return true;
	}
1119273
public function __isset($key)
    {
        if (isset($this->custom_attributes[$key]))
            return true;

        return ! is_null($this->getAttribute($key));
    }
4839
public function __isset($key)
	{
		if (isset($this->$key) && (!is_null($this->$key))) {
			return true;
		}
		if (!isset($this->specificationExtensions[$key])) {
			return false;
		}
		return !is_null($this->specificationExtensions[$key]);
	}
1188843
public function has($key)
    {
        return $this->translator->has($this->composeKey($key), $this->locale);
    }
1179362
public function has($key)
    {
        $keys = explode('.', $key);
        $cKeys = count($keys);
        $config = $this->_arr;

        for ($i = 0; $i < $cKeys; ++$i) {
            if (is_array($config)) {
                if (array_key_exists($keys[$i], $config)) {
                    $config = $config[$keys[$i]];
                } else {
                    return false;
                }
            } else {
                return false;
            }
        }

        return true;
    }
598795
public function has($key)
    {
        $menu = $this->getMenu($key);

        return !is_null($menu) && $menu->count() > 0;
    }
668969
final public function __isset($key)
	{
		return	array_key_exists($key, $this->_stack) && isset($this->_stack[$key]);
	}
984102
public function has(string $key) : bool
    {
        $k = $this->keyConvert($key);
        return getenv($k) !== false;
    }