public function getChild($id = false)
{
if ($id === false) {
return $this->menu;
}
if ($id == $this->getId()) {
return $this;
}
foreach ($this->menu as $item) {
if ($id == $item->getId()) {
return $item;
} elseif ($i = $item->getChild($id)) {
return $i;
}
}
}