yii\web\HeaderCollection::offsetExists PHP Method

offsetExists() public method

This method is required by the SPL interface [[\ArrayAccess]]. It is implicitly called when you use something like isset($collection[$name]).
public offsetExists ( string $name ) : boolean
$name string the header name
return boolean whether the named header exists
    public function offsetExists($name)
    {
        return $this->has($name);
    }