Add condition around divider class name