I'd skip the filter and instead do the check inside the fold to return the map unchanged, effectively filtering them out.