added object type check for product categories