my $instance_index = List::Util::first { !defined $_ } @name;