Stop checking on first match