Added hooks for exiting the search early.
- Allows for faster .one/.has methods.