You don't have to check here as resize will move data around only if the size differs.