```python
def is_sublist(l, s):
    """
    Checks if a list `l` contains a sublist `s`.

    Args:
        l: The main list.
        s: The potential sublist.

    Returns:
        True if `s` is a sublist of `l`, False otherwise.
    """
    # An empty list is a sublist of any list.
    if not s:
        return True

    # If s is longer than l, it cannot be a sublist.
    if len(s) > len(l):
        return False

    # Iterate through all possible starting positions for the sublist in the main list.
    for i in range(len(l) - len(s) + 1):
        # Check if the slice of `l` starting at `i` matches `s`.
        if l[i:i + len(s)] == s:
            return True

    # If the loop completes without finding a match, `s` is not a sublist.
    return False
```