function __construct() { if (isset($_COOKIE['prefs'])) { self::$prefs = array_merge(self::$default, unserialize($_COOKIE['prefs'])); } else { self::$prefs = self::$default; } }