I appears to me here you are comparing two lists.  `get-by-name` should just return one item in each case so i think it's fine.  But I'm thinking `get-by-name` probably should have some complementary function `get-first-by-name` or something so that `map` is not necessary here.  i'll submit that as a separate issue.