Verified that boolean check with shared prefs works.