The script should be titled 'check if backup file exists' as all doing a restore verifyonly does is make sure the file is there and a cursory look at the backup header. Would be much more useful to see whether the backup was taken using WITH CHECKSUM and also use WITH CHECKSUM on the verify.