In the generic case it is not the fact that empty string ("") means that the badge should be removed (it is so in some implementations), but null string means obviously no badge.