Can't json parse undefined things. Set a basic json response if localStorage.beers is null