Added mactches() method to check current route.