IIUC you need like an else
branch, if the requirement isn’t met. CommandUtils allows you to do something like that.
If checks and has money condition.
cu execute if "*cu has money %player_name% 50000" "*say The player has enough money!"
cu execute if not "*cu has money %player_name% 50000" "*say The player doesn't have enough money!"
I don’t know if VirtualChest can execute multiple commands for the primary action. If not, use some kind of alias/command plugin, ofc CommandUtils can do that for you: Aliases.