public static function isEnabled($om, $name)
    {
        if ($om instanceof EntityManagerInterface) {
            $sqlFilters = $om->getFilters();

            if ($sqlFilters->isEnabled($name)) {
                $filter = $sqlFilters->getFilter($name);

                return !$filter instanceof EnableFilterInterface
                    || ($filter instanceof EnableFilterInterface && $filter->isEnabled());
            }
        }

        return false;
    }