These two version isn\'t 100% the same, when value is null the result is different:
null
// version 1 const dogs = animal.dogs || []; const cats = ani