(fix): If empty array is sent, total is 0
Updated readme with more information