fixing array-extraction from sortedPoly. If an already sortedPoly is used, we don't need to check the array annyhow.