refactor(dom) getSelectedNames: always return array