KOTLIN VAR INIT.

lateinit var file: File    

if (this::file.isInitialized) { ... }
Hjmcoder