Checks if a key exists in storage.
static bool containsKey(String key) { return _prefs?.containsKey(key) ?? false; }