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