[MOD] Check for localStorage
Before processing
Refactoring the check of the settings