handle the rets element being empty

If this element is empty, we shouldn't call a method on nil (which `attr` does underneath the hood). Instead just assume the response is valid.