Check gname is empty