protected function iterateRoutes(string $function)
    {
        if (($route = $function($this->routes)) !== false) {
            $this->currentRoute = $route;
            return $this->currentRoute;
        }
        return false;
    }
protected function iterateRoutes(string $function)
    {
        if (($route = $function($this->routes)) !== false) {
            $this->currentRoute = $route;
            return $this->currentRoute;
        }
        return false;
    }
protected function iterateRoutes ( string $ function ) { if ( ( $ route = $ function ( $ this -> routes ) ) !== false ) { $ this -> currentRoute = $ route ; return $ this -> currentRoute ; } return false ; }
Iterate internal Routes array

Provides a unified method for iterating the Routes array with PHP
functions, 'next', 'prev', 'current', and 'end'. Returns the Route on the
position that is desired, if no Route is found, false is returned.

@param string $function Function name for array iteration
@return \SlaxWeb\Router\Route|bool
Iterate internal Routes array