Fix errors on PHP setups that output warnings on undefined array keys