Count number of true booleans in array

Why not just use the array element in the branch?