Check route config is an object