'Checks whether the given file exists and belongs
to faraday\'s configuration syntax'

def _isConfig(self):

    root = f = None
    try:
        f = open(self.filepath, 'rb')
        try:
            for (event, elem) in ET.iterparse(f, ('start',)):
                root = elem.tag
                break
        except SyntaxError as err:
            print ('Not    an    xml    file.\n    %s' % err)
            return False
    except IOError as err:
        print ('Error    while    opening    file.\n%s.    %s' % (err, self.filepath))
        return False
    finally:
        if f:
            f.close()
    return (root == 'faraday')
