This was just a naive way of checking whether the value was an integer and not a float, for conversion.
Actually, this check will simply be replaced with ```ctype_digit($attr->nodeValue)``` ;)