code: def function_exists(self, fun):
          
          res = fun in self._rule_functions
          self.say('function exists:' + str(fun) + ':' + str(res),
                   verbosity=10)
          return res
docs: get function's existense