def hasFunction(self, name):
        content = self.getContent()
        regExp = self.functionRegExp % name

        return re.search(regExp, content) is not None
returns true if the function with the name _name_ is found in the code
dataset/ETHPy150Open francodacosta/sublime-php-getters-setters/php-getter-setter.py/Parser.hasFunction