static INDArray getOrNull(INDArray[] arr, int idx) {
        if (arr == null || arr.length == 0) {
            return null;
        }
        return arr[idx];
    }
static INDArray getOrNull ( INDArray [ ] arr , int idx ) { if ( arr == null || arr . length == 0 ) { return null ; } return arr [ idx ] ; }
Package private