That seems sane, yes.  Question: why do you do the check on `window.mochaPhantomJS`?  Since we only run this in the context of PhantomJS, is this really necessary?