protected function isEmptyResponse(ResponseInterface $response)
    {
        if (method_exists($response, 'isEmpty')) {
            return $response->isEmpty();
        }

        return in_array($response->getStatusCode(), [204, 205, 304]);
    }
protected function isEmptyResponse(ResponseInterface $response)
    {
        if (method_exists($response, 'isEmpty')) {
            return $response->isEmpty();
        }

        return in_array($response->getStatusCode(), [204, 205, 304]);
    }
protected function isEmptyResponse ( ResponseInterface $ response ) { if ( method_exists ( $ response , 'isEmpty' ) ) { return $ response -> isEmpty ( ) ; } return in_array ( $ response -> getStatusCode ( ) , [ 204 , 205 , 304 ] ) ; }
Helper method, which returns true if the provided response must not output a body and false
if the response could have a body.

@see https://tools.ietf.org/html/rfc7231

@param ResponseInterface $response

@return bool
Helper method which returns true if the provided response must not output a body and false if the response could have a body .