Classes/ViewHelpers/AbstractDvoContextApiViewHelper.php
protected function removeNullValuesFromArray($array)
    {
        $result = [];

        foreach ($array as $key => $value) {
            if (isset($value)) {
                if (($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage && count($value) > 0) || !($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage)) {
                    $result[$key] = $value;
                }
            }
        }

        return $result;
    }
protected function removeNullValuesFromArray($array)
    {
        $result = [];

        foreach ($array as $key => $value) {
            if (isset($value)) {
                if (($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage && count($value) > 0) || !($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage)) {
                    $result[$key] = $value;
                }
            }
        }

        return $result;
    }
protected function removeNullValuesFromArray ( $ array ) { $ result = [ ] ; foreach ( $ array as $ key => $ value ) { if ( isset ( $ value ) ) { if ( ( $ value instanceof \ TYPO3 \ CMS \ Extbase \ Persistence \ ObjectStorage && count ( $ value ) > 0 ) || ! ( $ value instanceof \ TYPO3 \ CMS \ Extbase \ Persistence \ ObjectStorage ) ) { $ result [ $ key ] = $ value ; } } } return $ result ; }
remove all null values from the array

@param array $array
@return array
remove all null values from the array