check if secondary parameter exists if primary parameter is 'database'.

@param $key(string) primary and secondary parameter concatenated
337118
protected static function checkDatabase($key)
    {
        $driver = self::$params['database']['default'];
        //
        if (array_key_exists($key, self::$params['database'])) {
            return true;
        } elseif (array_key_exists($key, self::$params['database']['connections'][$driver])) {
            return true;
        } else {
            self::exception('database', $key);
        }
    }
1117140
function offsetexists($key) {
		return Base::instance()->visible($this,$key)?
			isset($this->$key):
			($this->exists($key) && $this->get($key)!==NULL);
	}
1282295
public function hasQueryVar($key)
  {
    if(!$this->hasQuery()) return FALSE;

    parse_str($this->query, $queryArray);

    return array_key_exists($key, $queryArray) ? TRUE : FALSE;
  }
1075553
public function has($key): bool
    {
        $this->checkKey($key);
        return (bool) $this->getRedis()->keys($this->filterKey($key));
    }
884792
public function hasMapping($key)
    {
        if (is_null($this->mappedAttributes)) {
            $this->parseMappings();
        }

        return array_key_exists((string) $key, $this->mappedAttributes);
    }
553395
public function offsetExists($key)
    {
        $this->executeBeforeCallback();

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

        return false;
    }
398263
private function CheckData($key)
    {
        if (!is_array($this->row))
            throw new \BadMethodCallException('MysqliReader has no data. Call Read method or check query.');
          
        if (!array_key_exists($key, $this->row))
            throw new \InvalidArgumentException('Mysqli Reader has no index ' . $key);
    
          if ($this->IsClosed())
            throw new \BadMethodCallException('MysqliReader is closed.');
          
    }
902992
public function offsetExists($key) {
    $resolved_key = $this->arguments_spec->normalizeOptionName($key);
    if ($resolved_key === null) {
      return isset($this->merged_arg_values[$key]);
    }

    return isset($this->merged_arg_values[$resolved_key]);
  }
1092746
public function has($key)
    {
        if (shm_has_var($this->shm, $this->shm_key($key))) { // check is isset
            return true;
        } else {
            return false;
        }
    }
483447
final public function offsetExists($key)
	{
		return	array_key_exists($key, $this->_stack) && isset($this->_stack[$key]);
	}
266238
public function exists(?string $key = null) : bool
    {
        $key = $this->constructKey($key);

        return $this->parseKey($key, function ($part, $result) {
            return array_key_exists($part, $result);
        });
    }
1339593
public function has($key = null)
    {
        if ($key === null) {
            return $this->count() > 0;
        }

        $arr = &$this->getStackByReference($key);

        return is_array($arr) ? array_key_exists($key, $arr) : false;
    }
1207867
public function has(string $key): bool
    {
        $this->assertRead();

        return \array_key_exists($key, $this->data);
    }
364032
public function offsetExists($key)
    {
        return isset($this->data[$key]) || array_key_exists($key, $this->data);
    }
1355053
public function has($key)
    {
        if (!$this->isEnabled()) {
            return false;
        }

        return (false !== $this->server->get($this->prefix . $key));
    }
1339046
public function hasQuery($key)
    {
        $arrayKeys = array_keys($_GET);
        $keys = is_array($key) ? $key : func_get_args();

        foreach ($keys as $value) {
            if (!in_array($value, $arrayKeys) || trim((string)$_GET[$value]) === '') {
                return false;
            }
        }

        return true;
    }
692807
public function offsetExists($key)
    {
        return Arr::accessible($this->value) && Arr::exists($this->value, $key);
    }