It's more idiomatic in JS to just use `if (keepAllFiles)` (since it will be undefined if not specified, which is falsy).