I think that this is related with the TODO

> // TODO: Don't check ttl after first iteration
> // $options['ttl'] = 0;