Fix cache option

Before if `options.cache` was set to false, it would fail the check and default to `true`