protected function normalizeOptions()
    {
        $this->options['data']  = ArrayHelper::getValue( $this->options, 'data', [ ] );
        $this->options['style'] = ArrayHelper::getValue( $this->options, 'style', '' );

        $this->options['data']['hash'] = $this->hash ?: ArrayHelper::getValue( $this->options['data'], 'hash', null );
        $this->hash                    = $this->hash ?: ArrayHelper::getValue( $this->options['data'], 'hash', null );

        if ($this->background) {

            $this->options['style'] = SwiperCssHelper::mergeStyleAndBackground(
                $this->background,
                ArrayHelper::getValue( $this->options, 'style', '' )
            );

        } elseif (ArrayHelper::getValue( $this->options, 'style' )) {

            $this->background = SwiperCssHelper::getBackgroundUrl(
                $this->options['style']
            );

        }

        $this->options         = array_filter( $this->options );
        $this->options['data'] = array_filter( $this->options['data'] );
    }