public static function getInstance($refresh = false) { if (is_null(self::$instance) || $refresh) { self::$instance = new self(); } return self::$instance; }