declare array var to avoid errors when neither function exists.
Merge pull request #919 from craigh/var_fix

declare array var to avoid errors when neither function exists.