Neos.Neos/Classes/Fusion/Helper/ArrayHelper.php
protected function filterInternal($set, $filterProperty, $negate)
    {
        if (is_object($set) && $set instanceof Collection) {
            $set = $set->toArray();
        }

        return array_filter($set, function ($element) use ($filterProperty, $negate) {
            $result = (boolean)ObjectAccess::getPropertyPath($element, $filterProperty);
            if ($negate) {
                $result = !$result;
            }

            return $result;
        });
    }
protected function filterInternal($set, $filterProperty, $negate)
    {
        if (is_object($set) && $set instanceof Collection) {
            $set = $set->toArray();
        }

        return array_filter($set, function ($element) use ($filterProperty, $negate) {
            $result = (boolean)ObjectAccess::getPropertyPath($element, $filterProperty);
            if ($negate) {
                $result = !$result;
            }

            return $result;
        });
    }
protected function filterInternal ( $ set , $ filterProperty , $ negate ) { if ( is_object ( $ set ) && $ set instanceof Collection ) { $ set = $ set -> toArray ( ) ; } return array_filter ( $ set , function ( $ element ) use ( $ filterProperty , $ negate ) { $ result = ( boolean ) ObjectAccess :: getPropertyPath ( $ element , $ filterProperty ) ; if ( $ negate ) { $ result = ! $ result ; } return $ result ; } ) ; }
Internal method for filtering

@param array|Collection $set
@param string $filterProperty
@param boolean $negate
@return array
Internal method for filtering