Though given that getAsArray is unused and untested, maybe we should just
remove it?
Differential Revision: https://phabricator.services.mozilla.com/D30832
--HG--
extra : moz-landing-system : lando
There are surprisingly many of them.
(Plus a couple of unnecessary checks after `new` calls that were nearby.)
--HG--
extra : rebase_source : 47b6d5d7c5c99b1b50b396daf7a3b67abfd74fc1