A bug just threw me for a good 45 minute loop scratching my head, when finally I realized assigning an array containing another (empty) array myArray = [[]], holds equivalence with false:
if (myArray == false) {} // true
I realize that if (myArray === false) {} // false but why would an array with length > 0 have equivalence to false at all?