in this case, :top (not nil) should be default value returned if the path is not found in the maps.
reduce unnecessary work in head-in-comps