private function isEmptyArray($input)
    {
        if (!is_array($input)) {
            return false;
        }
        $empty = true;
        foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator($input), RecursiveIteratorIterator::LEAVES_ONLY) as $key => $value) {
            $empty = (empty($value) && $value !== '0' && $value !== 0);
            if (!$empty) {
                return false;
            }
        }

        return $empty;
    }
private function isEmptyArray($input)
    {
        if (!is_array($input)) {
            return false;
        }
        $empty = true;
        foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator($input), RecursiveIteratorIterator::LEAVES_ONLY) as $key => $value) {
            $empty = (empty($value) && $value !== '0' && $value !== 0);
            if (!$empty) {
                return false;
            }
        }

        return $empty;
    }
private function isEmptyArray ( $ input ) { if ( ! is_array ( $ input ) ) { return false ; } $ empty = true ; foreach ( new RecursiveIteratorIterator ( new RecursiveArrayIterator ( $ input ) , RecursiveIteratorIterator :: LEAVES_ONLY ) as $ key => $ value ) { $ empty = ( empty ( $ value ) && $ value !== '0' && $ value !== 0 ) ; if ( ! $ empty ) { return false ; } } return $ empty ; }
Check wether an array is empty and if it is the value of the repeater is set to null.

@param array $input

@return bool
Check wether an array is empty and if it is the value of the repeater is set to null .