checking for true value of $thing circumvents spurious 'uninitialized' warnings