Aquí te pongo un ejemplo que he usado para saber si existía una imagen en una carpeta. Adáptalo a tus necesidades:
Código PHP:
SET FS=Server.CreateObject("Scripting.FileSystemObject")
imagen = Server.MapPath("./fotos/" & id & ".jpg")
IF NOT FS.FileExists(imagen) THEN
foto="nofoto"
ELSE
foto=id
END IF
Suerte.