Codice PHP:
if (is_file($link)) {
/* istruzioni */