I think you want Iterators.tryFind().