'Checks if aggregate exists.
:return:
True if aggregate found
False if aggregate is not found
:rtype: bool'

def get_aggr(self):

    aggr_get_iter = netapp_utils.zapi.NaElement('aggr-get-iter')
    query_details = netapp_utils.zapi.NaElement.create_node_with_children('aggr-attributes', **{'aggregate-name': self.name})
    query = netapp_utils.zapi.NaElement('query')
    query.add_child_elem(query_details)
    aggr_get_iter.add_child_elem(query)
    try:
        result = self.server.invoke_successfully(aggr_get_iter, enable_tunneling=False)
    except netapp_utils.zapi.NaApiError as e:
        if (to_native(e.code) == '13040'):
            return False
        else:
            self.module.fail_json(msg=to_native(e), exception=traceback.format_exc())
    if (result.get_child_by_name('num-records') and (int(result.get_child_content('num-records')) >= 1)):
        return True
    else:
        return False
