nested `?:` should not be used. Also this looks like the `[]` is never reached. Why is split called on Array?