add Result.isResult static function.