Replace Guard Clause With Kotlin Function Call