[BUGFIX] Ensure valid arguments for array_chunk

Fixes #637
on yes, you emptied $output ... I overlooked that line. All fine.