Help for this page
if (defined $array->[1] and $array->[1] eq 'foo') { ... }
if (defined $array->[1]) { if ($array->[1] eq 'foo') { ... } }