Should I check for nulls here? I have moved the assertion before the loop, but idk whether there could be null features inside the array..