How do i programmatically check if a catalog pricerule is active or not?
I have tried loading collection like this, where 13 is ID of the catalog rule:
$catalog_rule = Mage::getModel('catalogrule/rule')->load(13);
And then use
if (!empty($catalog_rule)) {
echo 'foo';
}
This always returns true nomatter if rule is active or not.
How do i check if catalog price rule is not empty and is active?