I think I'd be a fan of dumping this function and changing the `backupData` call to accept an argument to set the `useBackup` property. That function also does things that this doesn't (wrapping it in a try/catch is one example).