(defined $foo->[0]) ? print "TRUE\n" : print "FALSE\n"; #### use strict; use warnings;