check for empty hg