if(!empty($result) && is_array($result)){
array_walk_recursive($result, function (&$value) {
if (is_null($value) || $value === 0 || $value===null) {
$value = '';
}
});
}