code: public function isActiveURL($url, $output = "active")
      {
          if ($this->url->current() == $this->url->to($url)) {
              return $output;
          }
  
          return null;
      }
docs: Compares given URL with current URL.
  
  @param  string  $url
  @param  string  $output
  @return boolean