def has_var(self, name, traverser=None):
        index = None
        if isinstance(name, types.StringTypes) and name.isdigit():
            index = utils.get_as_num(name)
        elif isinstance(name, int):
            index = name

        if index is not None and len(self.elements) > index >= 0:
            return True

        return super(JSArray, self).has_var(name, traverser=traverser)
dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/jstypes.py/JSArray.has_var/original