<?php $responseXml = $response->getBody()->getContents();
if (empty(trim($responseXml))) {
throw new InvalidResponseException("Empty response received from AADE MyData API");
}
<?php $responseXml = $response->getBody()->getContents();
if (empty(trim($responseXml))) {
throw new InvalidResponseException("Empty response received from AADE MyData API");
}