function sum(input){ if (toString.call(input) !== "[object Array]") return false; var total = 0; for(var i=0;i