It's a bit more semantically clear if the condition here is reversed. That way it reads: "if the distance is positive AND it's lower than the current best match."