Do you mean to check if $2 is a valid youtube link?