def _check_byte_size(size: int) -> bool:
    """
    Checks whether size is a valid size. Sizes include None or >= 0

    :param size: The size to check
    :type size: int

    :return: Whether the size is valid
    :rtype: bool
    """
    if size is None:
        return True
    return size >= 0