check is string is not null swift 5 code example Example: check is string is not null swift 5 if emptyString.isEmpty { print("Nothing to see here") }