A better way to confirm Phantomjs is registered