public function isPartCountSame($url)
    {
        return count(explode('/', rtrim($url, '/'))) === count(explode('/', rtrim($this->url, '/')));
    }
public function isPartCountSame($url)
    {
        return count(explode('/', rtrim($url, '/'))) === count(explode('/', rtrim($this->url, '/')));
    }
public function isPartCountSame ( $ url ) { return count ( explode ( '/' , rtrim ( $ url , '/' ) ) ) === count ( explode ( '/' , rtrim ( $ this -> url , '/' ) ) ) ; }
Verify whether this route's url has the same 'part' count.

@param string $url

@return bool
Verify whether this route s url has the same part count .