Simplified code for determining whether given name is empty. Also works if the given name field is None.