In Objective C, one could do the following to check for strings:
if ([myString isEqualToString:@\"\"]) { NSLog(@\"m
What about
if let notEmptyString = optionalString where !notEmptyString.isEmpty { // do something with emptyString NSLog("Non-empty string is %@", notEmptyString) } else { // empty or nil string NSLog("Empty or nil string") }