Logical AND && Operator in JavaScript, Simplified