Added typed version of cache_file_exists