`options` can't be undefined (also a few lines below `options.force` is accessed without this guard).