check for file existence before accessing modifiedDate