check router defined