#NEWLINE# def exists_udf( self , name , database = None ) : #NEWLINE# #INDENT# '\n        Checks if a given UDF exists within a specified database\n\n        Parameters\n        ----------\n        name : string, UDF name\n        database : string, database name\n\n        Returns\n        -------\n        if_exists : boolean\n        ' #NEWLINE# return ( len ( self . list_udfs ( database = database , like = self ) ) > 0 )