refactor(dom) getSelectedFiles: always return array