package com.packt.chapter2 fun isNull(str: String?): Boolean = if (str == null) true else false fun foo() { var str: String? }