Moved isOreEqual

It shall be used probably many other places.