code: public static boolean isEmptyCriteria(final Criteria criteria) {
  
          return  isEmpty(criteria.getAliases()) &&
                  isEmpty(criteria.getDeviceTypes()) &&
                  isEmpty(criteria.getCategories());
      }
docs: Helper method to check if all criteria are empty. Useful in FCM land, where we use topics.