I didn't refactored this "duplicated" code into a separate method, because at this place we handle a `SimpleXmlElement` and in https://github.com/PHPIDS/PHPIDS/pull/53/files#diff-2fcac1ab5fb62be7c3c47c48644b12ebR330 it is a `stdClass` instance.

They have the same properties and use the same property-names but in fact it is not the same thing therefore I decided to let like it was before.