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