Fix emptying array field

After deleting everything from array, old values are still saved, since undefined was returned instead of []