[bash] How to check if a symlink exists