Check if the link is active, if not, go to the next one

Something like this should work for you

1 Like