from typing import Optional
from typing import List


def check_name_in_list(name: str, whitelist: Optional[List[str]] = []) -> bool:
    """Check if the name is in the whitelist
    """
    if whitelist is None:
        return True
    if name in whitelist:
        return True
    return False