public function getRoute($path = "", $name = "")
    {
        for ($i = 0; $i < count($this->routes); $i++)
        {
            $checkRoute = $this->routes[$i];

            if($checkRoute->getName() === $name || $checkRoute->getPath() === $path)
            {
                return $checkRoute;
            }
            else if($checkRoute->getRegex() != null)
            {
                $regex = $checkRoute->getRegex();

                if(preg_match($regex, $path))
                {
                    preg_match_all('/\/(\w+)/', '/'.ltrim($path, $checkRoute->getStaticPath()), $matches, PREG_SET_ORDER);
                    foreach($matches as $match)
                    {
                        $values[] = $match[1];
                    }
                    $checkRoute->setValues($values);

                    return $checkRoute;
                }
            }
        }

        return false;
    }