src/Sulu/Component/Rest/ListBuilder/Expression/Doctrine/DoctrineInExpression.php
protected function filterNullValues(array $values)
    {
        $result = array_filter(
            $values,
            function($val) {
                return $val || 0 === $val || false === $val;
            }
        );

        return $result;
    }
protected function filterNullValues(array $values)
    {
        $result = array_filter(
            $values,
            function($val) {
                return $val || 0 === $val || false === $val;
            }
        );

        return $result;
    }
protected function filterNullValues ( array $ values ) { $ result = array_filter ( $ values , function ( $ val ) { return $ val || 0 === $ val || false === $ val ; } ) ; return $ result ; }
Returns a new array without null values.

@param array $values

@return array
Returns a new array without null values .