Stop using g_sequence_get_length() to check if it's empty