and `files.length` will throw if `files` is `undefined`, return early (as shown before)