Function to get Boolean value from preference
Boolean from given key if exist, defaultValue if not
String key to refer
Boolean to return if the key doesn't return any value