public function check($path)
    {
        if ($this->isExpanded === false) {
            $this->value = $this->_expand($this->value);
        }

        return Hash::check($this->value, $path);
    }
public function check($path)
    {
        if ($this->isExpanded === false) {
            $this->value = $this->_expand($this->value);
        }

        return Hash::check($this->value, $path);
    }
public function check ( $ path ) { if ( $ this -> isExpanded === false ) { $ this -> value = $ this -> _expand ( $ this -> value ) ; } return Hash :: check ( $ this -> value , $ path ) ; }
Checks if a value exists in the cookie data.

This method will expand serialized complex data,
on first use.

@param string $path Path to check
@return bool
Checks if a value exists in the cookie data .