regex ) { $regex = new Regex( $this->value, true ); $cookie = Request::get_cookie( $this->name ); if ( $cookie === false ) { return false; } return $regex->is_match( $cookie ); } return Request::get_cookie( $this->name ) === $this->value; } }