This if statement (line 2851) seems redundant since MB.unite should take care of it anyway (and you're saving very little by doing this check beforehand), but I left it in just in case.