this if block could return nil if location.name and location.address.locationName are both unset. Consider refactoring so that the method consistently returns @"" if no location name is found.