enables callback to stop traverse returning true