in reply to Testing for Truth

The first tests for elements in the array. There are elements (there's one) in it, hence it is tested true.
The second tests the first element for truth. It is a "0", hence it's tested false.