raid api check for empty role