check the label has data before editing