public function offsetExists($index) { $index = (string) $index; return isset($this->callbacks[$index]) ? TRUE : parent::offsetExists($index); }