Why are you passing in an array here? Seems that it should just return an array.