Checking YouTubePlayer URL validity?

Hi, I am new to Xojo. While exploring a little further the YouTubePlayer web app, I was wondering if after I set the URL of the YouTubePlayer control with the prefix + the content of the textbox I could some how verify if the result URL was valid and then, in case not valid, display a message. Anyone? Thanks in advance.

Use an HTTP socket to get the page, and if you find the word “removed”, it means the video is no longer available ?