protected function _createHeader($title = null, $options = []) {
        $options += [
            'close' => true
        ];
        $out = null;
        if($title) {
            $out = '';
            if($options['close']) {
                $out .= $this->formatTemplate('modalHeaderCloseButton', [
                    'content' => $this->formatTemplate('modalHeaderCloseContent', []),
                    'label' => __('Close')
                ]);
            }
            $out .= $this->formatTemplate('modalTitle', [
                'content' => $title,
                'attrs' => $this->templater()->formatAttributes([
                    'id' => $this->_currentId ? $this->_currentId.'Label' : false
                ])
            ]);
        }
        return $this->_part('header', $out, $options);
    }