Checks if the shared preferences contain a specific key.
true if the preference exists, false otherwise.
true
false
The name of the preference to check.