public function formatOptionsArray($options) : array
    {

        //no transformations on grouped data
        if ($this->isGrouped()) {
            return $options;
        }


        if (! is_array($options) && ! count($options)) {
            return $options;
        }

        if (! isset($options[0]['value'])) {
            $ret = [];
            foreach ($options as $value => $text) {
                $ret[] = [
                    'value' => $value,
                    'text'  => $text,
                    ];
            }

            return $ret;
        }

        return $options;
    }