moved checkFilesExist to FileAccessor class