Yes, use 'localStorage.getItem(key)' and check if the returned value is not null.