Determines if the given offset exists.

@param  string  $key
@return bool
553395
public function offsetExists($key)
    {
        $this->executeBeforeCallback();

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

        return false;
    }
725764
public function has($key)
    {
        $keys = is_array($key) ? $key : func_get_args();

        foreach ($keys as $value) {
            if (! $this->offsetExists($value)) {
                return false;
            }
        }

        return true;
    }
32555
public function offsetExists($key)
    {
        if (parent::offsetExists($key)) {
            return true;
        }

        // if it is in original and not in attributes
        // it was deleted
        if (isset($this->_originalAttributes[$key])) {
            return false;
        }

        if (!$data = $this->getFromDB($key)) {
            return false;
        }

        $this->_originalAttributes[$key] = $data;
        $this->_attributes[$key] = $data;

        return true;

    }
1141697
public function has($key)
    {
        if ($this->offsetExists($key) && (bool) $this->offsetGet($key)) {
            return true;
        }

        return false;
    }
1039673
public function offsetExists($key)
    {
        if (isset($this->attributes[$key])) {
            return true;
        }

        return parent::offsetExists($key);
    }
727280
public function has(string $key): bool
    {
        return isset($this->data[$key]) || array_key_exists($key, $this->data);
    }
469164
public function has(string $key): bool
    {
        if (strpos($key, '.') != false) {
            return $this->getNested($key) != null;
        }

        return array_key_exists($key, $this->settings);
    }
1032045
public function exists( $key ) {
		if ( ! $this->is_valid_session() ) {
			return false;
		}

		$key = $this->get_session_key( $key );
		if ( ! array_key_exists( $key, $_SESSION ) ) {
			return false;
		}

		return ! $this->_expired( $_SESSION[ $key ] );
	}
970476
public function offsetExists( $key )
	{
		if( !isset( $this->____pairs ) )
			$this->getPairs();
		return array_key_exists( $key, $this->____pairs );
	}
1207867
public function has(string $key): bool
    {
        $this->assertRead();

        return \array_key_exists($key, $this->data);
    }
65125
public function offsetExists($offset)
    {
        return array_key_exists($offset, $this->bindings)
            or array_key_exists($offset, $this->provides);
    }
1346603
public function exists($key) {

        $stmt = $this->connection->query("SELECT `key` FROM ".$this->table." WHERE `key`='{$key}';");
        $res  = $stmt->fetch(\PDO::FETCH_ASSOC);

        return isset($res["key"]);
    }
1334257
public function offsetExists($offset) {
		if ($offset instanceOf Argument) {
			$offset = $offset->key;
		}

		return array_key_exists($offset, $this->_parsed);
	}
1011351
public function offsetExists($key)
    {
        if(isset($this->data[$key])){
            return new self($this->data[$key]);
        }

        return false;
    }
308526
public function has($key): bool {
        $key = trim($key);
        $path = explode('.', $key);
        $pathLength = count($path);
        $target = &$this->data;
        for ($i = 1; $i <= $pathLength; ++$i) {
            $subKey = $path[$i - 1];

            // no such key!
            if (!isset($target[$subKey]) || ($i < $pathLength && !is_array($target[$subKey]))) {
                return false;
            }

            if ($i < $pathLength) {
                $target = &$target[$subKey];
            }
        }
        return true;
    }
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]);
  }
1300431
public function has($key)
    {
        return (bool) $this->redis->exists($this->redis->prefix($key));
    }