This code could use the restGET function, which would be consistent with other code.