all links are files, so the second check is not necessary.