Adding hasLink method to HasLinks trait

@nicolopignatelli please let me know what do you think about it
we need a loop exit condition to know if there is a link or not