I think you should check if the request is a `Zend\Http\Request` here