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

def get_user(self):

    security_login_get_iter = netapp_utils.zapi.NaElement('security-login-get-iter')
    query_details = netapp_utils.zapi.NaElement.create_node_with_children('security-login-account-info', **{'vserver': self.vserver, 'user-name': self.name, 'application': self.application, 'authentication-method': self.authentication_method})
    query = netapp_utils.zapi.NaElement('query')
    query.add_child_elem(query_details)
    security_login_get_iter.add_child_elem(query)
    try:
        result = self.server.invoke_successfully(security_login_get_iter, enable_tunneling=False)
        if (result.get_child_by_name('num-records') and (int(result.get_child_content('num-records')) >= 1)):
            return True
        else:
            return False
    except netapp_utils.zapi.NaApiError as e:
        if (to_native(e.code) == '16034'):
            return False
        else:
            self.module.fail_json(msg=('Error    getting    user    %s:    %s' % (self.name, to_native(e))), exception=traceback.format_exc())
