Check whether name is defined.