/**
  * @param $key
  *
  * @return Node|null
  */
 public function getLastByKey(string $key)
 {
     if ($this->key == $key) {
         return $this;
     }
     return $this->children->getLastByKey($key);
 }