getOrNullIfPresent

inline fun Map<String, Any?>.getOrNullIfPresent(key: String, ifPresent: (Any?) -> Unit)

Same as getIfPresent, but also runs ifPresent (with null) when key is present with an explicit null value — only skips it when key is absent entirely.