$class->new(
current_hypothesis => $hyp,
alternatives => [],
- next_step => DX::Step::InvokeNextPredicate->new(
- proposition => $props->members->[0],
- ),
propositions => $props,
- is_solution_state => 0,
+ (@{$props->members}
+ ? (
+ next_step => DX::Step::InvokeNextPredicate->new(
+ proposition => $props->members->[0],
+ ),
+ is_solution_state => 0,
+ )
+ : ( is_solution_state => 1 )
+ ),
);
}