Removed leftover array_sum in 2nd condition. Oops!
Documentation updated. Fix in conditional