/**
  * Check whether given is present in the container
  * @param Word $word
  * @return boolean
  */
 public function hasWord(Word $word)
 {
     return isset($this->words[$word->getText()]);
 }