Added is_not_empty as sequence check function