if pathMap value isn't an Number or String or null value just skip the value