private function createCheckboxNode(array $attrs)
    {
        $defaults = array(
            'type' => 'checkbox',
            'value' => '1'
        );

        $attrs = array_merge($defaults, $attrs);

        $node = new NodeElement();
        $node->openTag('input')
             ->addAttributes($attrs);

        // Check if active
        if ($this->active == $defaults['value'] || $this->active === true) {
            $node->addProperty('checked');
        }

        $node->finalize(true);

        return $node;
    }