It seems I can't write an array with file helper.
write_file('./save/' . $fileName . '.php', $array, 'w+')
Severity: Warning
Message: fwrite() expects parameter 2 to be string, array given
Filename: helpers/file_helper.php
Line Number: 96
Is there anyway around this?