check for empty tag