function getLastNotificationId($username = null) { $lastNotificationId = MultiCache::cache_get('lastNotificationId'); if (!is_array($lastNotificationId)) { $lastNotificationId = array(); } if (!is_null($username)) { if (isset($lastNotificationId[$username])) { return $lastNotificationId[$username]; } else { return FALSE; } } return $lastNotificationId; }