'is ospf area network exist'

def is_network_exist(self):

    if (not self.ospf_info):
        return False
    for area in self.ospf_info['areas']:
        if (area['areaId'] == self.get_area_ip()):
            if (not area.get('networks')):
                return False
            for network in area.get('networks'):
                if ((network['ipAddress'] == self.addr) and (network['wildcardMask'] == self.get_wildcard_mask())):
                    return True
        else:
            break
    return False
