@jansepar if we're bothering to create this function, why don't we move the checks for `localStorage` and `window.JSON` here?