Check if a key is stored.
@override bool hasSync(String key) => window.localStorage.getItem(key) != null;