#1659 checking if the links exist in the data