added empty labels check