check for a match before drawing the link