New helpers to swap array values and delete array values