We add URLs to the `links_for_embed set`, only when the `url_embed_preview_enabled` flag is turned on. So, it is sufficient to check if `links_for_embed` is not empty.