Shouln't it be existing instead of existing_url_pairs? From what I see existing_url_pairs holds existing + non_existing.