def has(self, key, in_global=True, in_local=True):
        """
        Returns whether specified key is exists or not

        @param key: a key to check
        @param in_global: a boolean specified whether checking against global
            dictionary or not
        @param in_local: a boolean specified whether checking against local
            dictionary or not
        """
        return (
            in_local and key in self.local_dict
        ) or (
            in_global and self.global_dict in key
        )
dataset/ETHPy150Open spywhere/Javatar/core/dict.py/JavatarDict.has/swapped operands of `in`