Inline is_map, ensure proper traversal