if badgeValue is zero, set nil