[bug] Avoiding undefine errors by providing an array as default