idiomatic check in map?