The “Get Component by Class” node in your screenshot will only give the first found component, there should be a “Get ComponentS by Class” node that will give you the array output with all components.
Both nodes pops up when you start searching for “get componen…” so you likely just clicked on the wrong one a bit too quick