Implicit return was wrong, forcing return of result array