from typing import Optional


def next_batch(limit: int, offset: int, total: Optional[int]) -> bool:
    """Is there a next batch of resources?"""
    if total is None:
        return True
    return (total - offset) > 0