/**
  * Do a get_multi request and optionally return the data if required
  *
  * @author Władysław Bodzek <*****@*****.**>
  * @param $keys array List of keys
  * @parma $returnData bool Return the data?
  * @return array
  */
 protected function getMultiInternal($keys, $returnData)
 {
     $map = array();
     foreach ($keys as $key) {
         $map[$this->encodeKey($key)] = $key;
     }
     $mappedData = $this->client->get_multi(array_keys($map));
     if (!$returnData) {
         return true;
     }
     $data = array();
     foreach ($mappedData as $k => $v) {
         $data[$map[$k]] = $v;
     }
     return $data;
 }