if (CuckooUtil.Util.getPathFromUri(this, data.data!!).isNullOrEmpty()) { code example Example: c# check if string is empty if (string.IsNullOrEmpty(myString)) { // }