from typing import Optional
from datetime import datetime


def check_expiration(expiration_datetime: Optional[datetime]):
    """
    Checks if an expiration date was exceeded. Returns true if expired.
    """
    return expiration_datetime is not None and datetime.now() >= expiration_datetime