should be `} else if (!file) {`