def is_sublist(l, s):
    if not s:
        return True
    if len(s) > len(l):
        return False

    sub_len = len(s)
    max_start = len(l) - sub_len

    for start in range(max_start + 1):
        if l[start:start + sub_len] == s:
            return True

    return False