Hello.
This is certainly achievable.
A very easy method to achieve this, would be to use policy routes which can direct traffic according to the next hop is available or whether a route exists or does not exist.
The policy routes are very flexible in letting you route traffic depending on the above.
For simple networks this is reasonably effective. Across larger networks it may become cumbersome with greater number of interfaces.
The following link explains the set ip default next-hop and set ip next-hop commands and how they differ.
These commands used in route maps can be very effective to achieve the redundancy you want.
Hopefully this is of some help.
Tim