refactor how a check for child of Equals is performed, fix gh-26