select case
           when pg_stat_file('SOME PATH', true) is null then false
           else true end as is_existing;