code: private function formatResponse(SimpleXMLElement $response)
      {
          $result = $this->convertXmlObject($response);
  
          if (!is_array($result->AddressValidationResult)) {
              return [$result->AddressValidationResult];
          }
  
          return $result->AddressValidationResult;
      }
docs: Format the response.
  
  @param SimpleXMLElement $response
  
  @return array