Checked for repeated links on get_valid_links predicate