Optionally cleaner:

```php
$dWalletBalance -= $dBlocksUnconfirmedBalance;

$aGetInfo = $bitcoin->getinfo();
if (is_array($aGetInfo) && array_key_exists('newmint', $aGetInfo)) {
  $dWalletBalance += $aGetInfo['newmint'];
}
```