protected function isTerminated($name, $resp, $invoker)
    {
        if ($this->chains[$name]['terminator']) {
            if ($this->chains[$name]['terminator'] === true) {
                return $resp == true;
            } elseif ($this->chains[$name]['terminator'] === false) {
                return $resp == false;
            }
            
            $callable = $this->chains[$name]['terminator'];
            
            if (is_string($callable)) {
                return (bool)$invoker($callable, $resp);
            } else {
                return (bool)$callable($resp);
            }
        }
        return false;
    }