better `if !kmap.empty?`