public function countDocHitsInWordList($word) { $res = $this->getWordFromWordList($word); if ($res) { return $res['num_docs']; } return 0; }