protected function checkResponseForError(\SimpleXMLElement $response)
    {
        if ($response->item != null && ((string) $response->item['type']) == 'error') {
            throw new MollieServerErrorException((string) $response->item->message, intval($response->item->errorcode));
        }
    }