add helper getOperatorCheckFunction