ak.is_valid
-----------

Defined in `awkward.operations.describe <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/describe.py>`__ on `line 13 <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/describe.py#L13>`__.

.. py:function:: ak.is_valid(array, exception=False)


    :param array: Array or record to check.
    :type array: :py:obj:`ak.Array`, :py:obj:`ak.Record`, :py:obj:`ak.layout.Content`, :py:obj:`ak.layout.Record`, :py:obj:`ak.ArrayBuilder`, :py:obj:`ak.layout.ArrayBuilder`
    :param exception: If True, validity errors raise exceptions.
    :type exception: bool

Returns True if there are no errors and False if there is an error.

Checks for errors in the structure of the array, such as indexes that run
beyond the length of a node's ``content``, etc. Either an error is raised or
the function returns a boolean.

See also :py:obj:`ak.validity_error`.

