I don't think it would be too expensive to check only on update. I don't think it'd check in this function, but rather a more generic 'buildRoutes' function that checks that all the routes are valid. I'll look into this right now.