ifLet

inline fun <T1, T2, R> ifLet(p1: T1?, p2: T2?, block: (T1, T2) -> R?): R?

Takes two nullable values along with a lambda function that operates on them and returns a nullable result.