private function isInteropMiddleware($middleware) { return !is_callable($middleware) && $middleware instanceof ServerMiddlewareInterface; }