rename whenExists to whenFileExists