SoPreference class provides four corresponding methods to retrieve the current value of a given preference.
GetBool() requires 3 parameters, the default value of the key should also be passed in. The default value parameter should be passed in only when using the GetBool method.
See also: intro to cache