Adding Array.from test when passing undefined