The `removeChild` method, where that specific line is, has a child object being passed on, not an index, so we do need to check the index.