Improve localStorage detection
Consolidate another localStorage check