[BUGFIX] Use return values of array_map in local driver