public function currentRouteNamed($name) { return $this->current() ? $this->current()->getName() == $name : false; }