Fix for `undefined` and prefer the one-liner: `if (cache !== false) cache = true;`