Chris Miller
val x = "abc123" val y: String? y = ... // might be null val xContainsY = if (y != null) x.contains(y) else false