I am looking for some form of boolean function which takes a YouTube video link/ID as an input, and returns whether or not the video exists, such as:
if(!videoExists(youtube.com/testvideo)) {
print("Error - video does not exist")
}
Is this at all possible? Thanks.