配列にキーにマッチする値が存在するか確認する

@param   array   $root
@param   string  $key

@return  bool
964484
public static function has(array $root, string $key){
        $nodes  = self::getMatchedNodes($root, $key);

        return !empty($nodes);
    }
501994
protected function arrayKey($key, $prefix)
    {
        $arrayKey = substr($key, strlen($prefix)+1);
        return is_bool($arrayKey) ? '' : $arrayKey;
    }
1183960
private static function setArrayValue(&$root, $compositeKey, $value)
    {
        $keys = explode('.', $compositeKey);
        while (count($keys) > 1) {
            $key = array_shift($keys);
            if (!isset($root[$key])) {
                $root[$key] = [];
            }
            $root = &$root[$key];
        }

        $key = reset($keys);
        $root[$key] = $value;
    }
239234
public function settingsKey($key)
    {
        if (is_array($this->settings) == false || isset($this->settings[$key]) == false) {
            return false;
        }

        return $this->settings[$key];
    }
877484
protected function static_acceleration_delete($key) {
        unset($this->staticaccelerationarray[$key]);
        if ($this->staticaccelerationsize !== false && isset($this->staticaccelerationkeys[$key])) {
            unset($this->staticaccelerationkeys[$key]);
            $this->staticaccelerationcount--;
        }
        return true;
    }
743275
public function delete(string $key): bool
    {
        $func = self::$type . '_delete';
        $func($key);
        return parent::delete($key);
    }
1000012
public function remove($key)
	{
		$this->connect();

		$this->driver->delete($key);

		$rc = $this->driver->getResultCode();

		if ($rc !== \Memcached::RES_SUCCESS)
		{
			return false;
		}

		return true;
	}
292927
protected function resolveCallbacksForRoot(array $root)
    {
        if (isset($root['accessControl'])) {
            $callable = $root['accessControl'];
            if (!is_callable($callable) && is_string($callable)) {
                $root['accessControl'] = $this->resolveCallable($callable);
            }
        }

        return $root;
    }
864295
public function delete($key): bool
    {
        if ($this->has($key)) {
            $this->unset($key);
            return true;
        }

        return false;
    }
1198222
protected function isPk($key)
    {
        $pk = $this->getPk();
        if (is_string($pk) && $pk == $key) {
            return true;
        } elseif (is_array($pk) && in_array($key, $pk)) {
            return true;
        }

        return false;
    }
1092046
public function member($key)
    {
        foreach ($this->value as $innerKey => $value) {
            if ($key === $innerKey) {
                return true;
            }
        }

        return false;
    }
377466
public function isLast($key)
	{
		if ($this->rows && $this->count())
		{
			return $key == array_slice($this->rows, -1, 1)[0]->getPkValue();
		}

		return false;
	}
773192
public function resolve( $rootKey, $key = null )
	{
		if ( !$key )
		{
			if ( !is_null( $this->def ) )
				return $this->get( $this->def );

			throw new BindingException( "The default key was never set for Service Resolver [" . static::class . "]" );
		}

		if ( !is_string( $key ) )
			throw new ResolverException( "Key must be a string" );

		if ( $result = $this->get( $key ) )
			return $result;

		throw new ResolverException( "Failed to resolve [" . $rootKey . ( empty( $key ) ? "" : "." . $key ) . "]" );
	}
1296614
public function rm(string $key): bool {
		return $this->driver->del($key) === 0 ? false : true;
	}
124068
public function has($key)
    {
        if(array_key_exists($key, $this->aliases) || array_key_exists($key, $this->resolved)) {
            return true;
        } else {
            return false;
        }
    }
869400
public function remove($key){
        return ($this->memcache) ? $this->memcache->remove($this->prefix . '_' . $key) : false;
    }
335277
public function removeDir($key, $recursive = false)
    {
        $query = ['dir' => 'true'];

        if ($recursive === true) {
            $query['recursive'] = 'true';
        }

        return $this->httpDelete($this->server . $this->getKeyPath($key), $query);
    }