check file exists

hi when i scroll dataset records i want to check if file is in a images folder of site . how can it ?

  1. FileExists('./images/img.jpg') i can use it ?

  2. Tweburlvalidator but is async ?

suggestions ?

FileExists() cannot be used on a file on a server that is behind HTTP.
TWebURLValidator can be used but due to the nature of the HTTP protocol, it is async.