'Basic and structural verifications'

def _check_parsed_data(self, stmts_vals):

    if (len(stmts_vals) == 0):
        raise UserError(_("This    file    doesn't    contain    any    statement."))
    no_st_line = True
    for vals in stmts_vals:
        if (vals['transactions'] and (len(vals['transactions']) > 0)):
            no_st_line = False
            break
    if no_st_line:
        raise UserError(_("This    file    doesn't    contain    any    transaction."))
