Only generate names if a given name is present.