isnt there this find_if method or so?I think I saw that in other code