Passing an empty array to puts prints nothing