はほとんどいなかった

there were hardly any; almost none were there

→ は
phrase Uncommon #9,639
there were hardly any; almost none were there ほとんど with a negative verb means “hardly any” or “almost none.” The particle は marks the topic.
JA: 負傷者は多かったが、行方不明の人はほとんどいなかった。
EN: There were many injured people, but hardly any people were missing.

部屋には子供たちはほとんどいなかった。

There were hardly any children in the room.

教室には子供たちはほとんどいなかった。

There were hardly any children in the classroom.

遅刻した女の子はほとんどいなかった。

There were hardly any girls who were late.