/**
  * Prepare options for rendering
  *
  * @param array $options
  * @return array
  */
 protected function prepareOptions(array $options = array())
 {
     $options = $this->formHelper->mergeOptions($this->options, $options);
     if ($this->parent->haveErrorsEnabled()) {
         $this->addErrorClass($options);
     }
     if ($this->getOption('attr.multiple')) {
         $this->name = $this->name . '[]';
     }
     $options['wrapperAttrs'] = $this->formHelper->prepareAttributes($options['wrapper']);
     $options['errorAttrs'] = $this->formHelper->prepareAttributes($options['errors']);
     if ($options['is_child']) {
         $options['labelAttrs'] = $this->formHelper->prepareAttributes($options['label_attr']);
     }
     return $options;
 }