How can I quickly test a path in bash to determine if any segment of it is a symlink?

I would use:

if [[ "$my_path" != "$(realpath --canonicalize-existing $my_path)" ]];then
  echo The path $my_path is relative path or contains symlinks.
else
  echo The path $my_path is absolute.
fi