Verifique se o armazenamento local é usado ou vazio
if (localStorage.length > 0){
//Items are stored in local storage
}else{
//Local storage is empty
}
Zany Zebra
if (localStorage.length > 0){
//Items are stored in local storage
}else{
//Local storage is empty
}