Most of the time return true means the function exited correctly. export_error() inside exporters.js works the other way around. Early exits work in yet another way, since they only exit with a return;
The code might look cleaner with throwing errors instead of using return. Or using Either or other monads.