All actors script call?

I know that there is a script call to obtain all items:

$data_items.each { |i|

next if i.nil? or i.name == ""

$game_party.gain_item(i, 1000)

}

 

Is there a script call to add all actors?
for actor in $data_actors
  next if actor.nil?


  $game_party.add_actor(actor.id)


end

^That should do it.
for actor in $data_actors  next if actor.nil?  $game_party.add_actor(actor.id)end^That should do it.
Thanks! This is a big help.
Or you could do $data_actors.compact.each { |actor| $game_party.add_actor(actor.id) }

Original thread: https://forums.rpgmakerweb.com/threads/all-actors-script-call.39373/