work() and workIndividual() output an array of results if the input was an array