index = $index; } public function validate(&$arr, $interchange) { if (empty($arr[$this->index])) { throw new HTMLPurifier_ConfigSchema_Exception($this->index . ' must exist'); } } }