convertDomElementToArray should handle zero values
[Config] made a condition more explicit