in reply to Why will referencing an undefined value as array reference create a real array
Why don't you just use ref for your check?
Cheers Rolf
(addicted to the Perl Programming Language)