You can probably use the checkinfsol function.