Several things:
- I think we'll need `$options['liOptions']` initialized somewhere. Otherwise we'll get undefined offset errors.
- Add an option to merge values from the Params field (like for `$linkAttr`)
- Instead of `$liOptions`, let's name the variable `$listAttr` to make it closer to what we currently have
- Please add space after `,`

If you want to make the `selected` on `<li>`, we'd need to make it configurable as well. So maybe add a default `selectedTag` in the options, accepting values of `link` or `list`, and we'll apply it accordingly.