Value of 'Boolean' type cannot be 'null' in Kotlin.