Safety net to make sure hidden class is removed

Also check we can use local storage before running