I probably should know the answers to these, but it's never come up
before.

How to check if a symbolic link exists and already points to where you
expect it to point?

And how to check for dead symbolic links?

Thanks.