#11954 If your function is written correctly, it will handle an empty array the same way as a nonempty array.