Cleaned up _equality_checker.