public function removeHandler(callable $handler)
    {
        $key = array_search($handler, $this->eventHandlers, true);

        if ($key !== false) {
            unset($this->eventHandlers[$key]);
        }
    }