Removing usage of .ToArray() as a result of codereview with @bnordli