protected static function _setupMessages() { if (self::$_messages === null) { self::$_messages = array(); if (array_key_exists('tbg_message', $_SESSION)) { self::$_messages = $_SESSION['tbg_message']; unset($_SESSION['tbg_message']); } } }