Removed null check prior to g_strcmp0() since this comparison method handles nulls gracefully.