\ExplSyntaxOn
\bool_new:N \l_daleif_in_parent_bool
\seq_new:N \l_daleif_children_seq
\tl_new:N \l_daleif_body_tl
\keys_define:nn { daleif-child }
{
% whatever necessary
}
\msg_new:nnn { daleif } { not-in-Parent }
{ Child~ used~ outside~ of~ Parent~ environment }
\cs_new_protected:Npn \__daleif_output_children:
{
\seq_map_inline:Nn \l_daleif_children_seq { \__daleif_output_child:nn ##1 }
}
\cs_new_protected:Npn \__daleif_output_child:nn #1#2
{
\keys_set:nn { daleif-child } {#1}