Review: Add the bondary check for g_ptr_array_remove_range().