$info = $client->doesObjectExist($bucket, $FileName) if ($info) { echo 'File exists'; } else { echo 'File does not exists'; }