/**
  * Return the current result item
  * Implements Iterator
  *
  * @return array|null
  * @throws Exception\LdapException
  */
 public function current()
 {
     if ($this->count() > 0) {
         if ($this->current < 0) {
             $this->rewind();
         }
         if (!array_key_exists($this->current, $this->cache)) {
             $current = $this->iterator->current();
             if ($current === null) {
                 return null;
             }
             $this->cache[$this->current] = $this->createEntry($current);
         }
         return $this->cache[$this->current];
     }
     return null;
 }