localStorage check by trying