Sorry, but I disagree with this one and the one before about $supported.

I would rather make it like this:

```php
        if (count($fields) > 1) {
            $radio = new html_radiobutton(array('name' => 'usertype'));

            $ul = '';
            foreach ($fields as $key => $val) {
                $ul .= html::tag(
```

instead of this:

```php
        // Create list with radio buttons
        if (count($fields) > 1) {
            $ul = '';
            $radio = new html_radiobutton(array('name' => 'usertype'));

            foreach ($fields as $key => $val) {
```