Falling back to looping through routes array to test for a match