function isInEnabledCategory(Elite_Vaf_Model_Catalog_Category_Filter $filter, $categoryIds) { foreach ($categoryIds as $categoryId) { if ($filter->shouldShow($categoryId)) { return true; } } return false; }