if (list($key, $cur) = each($this->data)) {
$this->key = $key;
if ($this->api->$key->exists("url", $url)) {
if (list($key, $cur) = each($this->data)) {
$this->key = $key;
if ($this->api->$key->exists("url", $url)) {
$this->cur = $this->api->withUrl($url)->withData($cur);
} else {
$this->cur = $this->api->$key->withData($cur);
$this->cur = $this->api->withUrl($url)->withData($cur);
} else {
$this->cur = $this->api->$key->withData($cur);