probably want `next(..., None)` here and a subsequent check for None (or possibly an object sentinel). otherwise this will raise `StopIteration` if the attr isn't found, which is confusing (can have some interesting side effects)