swap file_exists with is_file. closes #1520