get function's existense

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