Geomap: legend enhancements

Don"t these two conditions do the same thing? If the type is undefined then I don't think it will pass the first condition. Should check to confirm.