def is_submission_valid(submission, is_sfw):
    """
    Checks if a Reddit submission is valid.
    """
    return (
        not submission.stickied
        and len(submission.selftext) < 2000
        and not (is_sfw and submission.over_18)
    )