def hasSchemeWithName(self, scheme_name):
        """
        This method is used for both 'xcworkspace' and 'xcodeproj' classes. It returns a two
        element tuple that contains the following:
        
        First element:
            A 'True' or 'False' value indicating if a scheme with the passed name was found in 
            this project or workspace file.
        
        Second element:
            The scheme object if a scheme with matching name was found, None otherwise.
        """
        schemes = self.schemes();
        found_scheme = None;
        scheme_filter = filter(lambda scheme: scheme.name == scheme_name, schemes);
        if len(scheme_filter) > 0:
            found_scheme = scheme_filter[0];
        return (found_scheme != None, found_scheme);
dataset/ETHPy150Open samdmarshall/xcparse/xcparse/Xcode/xc_base.py/xc_base.hasSchemeWithName/original