import sqlite3


def user_has_registered(userID):
    """Checks if a particular user has been registered in database"""
    
    database = sqlite3.connect("users.db")
    cursor = database.cursor()
    cursor.execute(f"SELECT user_id FROM profile WHERE user_id = {userID}")
    result = cursor.fetchone()
    if result is None:
        return False
    return True