check if name is set