If I understand correcty, you want me to remove the check for empty arrays and get a RuntimeWarning on the `mean` computation ?
I can check for `ddof` but if I set `fact = 0` there will be a division by 0 at the end of the function. The correct value should be 1.