def check_user(conn, name, email):
    """
    Check if a user is registered in the database
    :param conn: Connection to the SQLite database
    :param name: User name
    :param email: User email address
    :returns: boolean
    """
    cur = conn.cursor()
    cur.execute("SELECT * FROM users WHERE user_email=%s", (email,))
    data = cur.fetchone()
    return True if data else False