def check_for_empty_tasks(task_assignments):
    """Convenience function that checks for empty processor/MPI worker
    assignments.

    Args:
        ``task_assignments``: List of task assignments.

    Returns:
        ``empty_tasks``: ``True`` if any processor/MPI worker has no tasks,
        otherwise ``False``.
    """
    empty_tasks = False
    for assignment in task_assignments:
        if len(assignment) == 0 and not empty_tasks:
            empty_tasks = True
    return empty_tasks