public function index_stats() { if (!sizeof($this->stats)) { $this->get_stats(); } return array($this->user->lang['TOTAL_WORDS'] => $this->stats['total_words'], $this->user->lang['TOTAL_MATCHES'] => $this->stats['total_matches']); }