Local storage null check