Minor tweak fixing an Can't use an undefined value as an ARRAY reference error