haveSetAndSubarray is no longer used, please remove it from further above.