<?php
function bool_label(array $cell): string {
    return (bool) $cell['balance_active'] ? 'yes' : 'no';
}

echo bool_label(['balance_active' => 1]), PHP_EOL;
echo bool_label(['balance_active' => 0]), PHP_EOL;
