private function stateChanged()
    {
        $keys = array_keys($this->values);
        foreach ($keys as $key) {
            if (!count($this->values[$key])) {
                unset($this->values[$key]);
            }
        }
        ksort($this->values);
    }