/**
 * Set the default item by id
 *
 * @param   integer  $id  The item id
 *
 * @return  MenuItem|void  The menu item representing the given ID if present or null otherwise
 *
 * @since   1.5
 */
public function setActive($id)
{
    if (isset($this->getMenu()[$id])) {
        $this->active = $id;
        return $this->getMenu()[$id];
    }
}