If you know there is always going to be at least one duplicate, why not just allow one duplicate?
i = 0;
$(':input.File').each(function() {
if ($(this).val() == T && i != 0) {
$this.after('<br/><span class="error">Duplicate</span>');
}
i++;
})