In this context it will only fail if OOM, in which case the underlying CThorExpandingRowArray will throw an exception ( as throwOnOom=true by default ). So I don't think need a separate checkedBinaryInsert method.