def _primary_active_curriculum(program):
    """
    Returns the first active curriculum in the given program, or None.
    """
    try:
        return next(c for c in program.get('curricula', []) if c.get('is_active'))
    except StopIteration:
        return