public static function formatAttributes($destroy_callback = null, $create_callback = null, $sticky = null, $life = null, $classname = null, $width = null)
    {
        $options = [];

        if ($destroy_callback !== null)
        {
            $options['destroyed'] = $destroy_callback;
        } // if

        if ($create_callback !== null)
        {
            $options['created'] = $create_callback;
        } // if

        if ($sticky !== null)
        {
            $options['sticky'] = !!$sticky;
        } // if

        if ($life !== null)
        {
            $options['life'] = $life;
        } // if

        if ($classname !== null)
        {
            $options['className'] = $classname;
        } // if

        if ($width !== null)
        {
            $options['width'] = $width;
        } // if

        return $options;
    }