Added parent traversal to check ifLink