src/Utilities/Arrays.php
public static function areAllValuesEmpty(array $array, $strictNull = false)
    {
        /*
         * No elements?
         * Nothing to do
         */
        if (empty($array)) {
            return false;
        }

        foreach ($array as $element) {
            /*
             * If elements are verified if they are exactly null and the element is:
             * - not an array
             * - not null
             * or elements are NOT verified if they are exactly null and the element is:
             * - not empty (e.g. null, '', 0, array())
             *
             * If one of the above is true, not all elements of given array are empty
             */
            if ((!is_array($element) && $strictNull && null !== $element) || !empty($element)) {
                return false;
            }
        }

        return true;
    }
public static function areAllValuesEmpty(array $array, $strictNull = false)
    {
        /*
         * No elements?
         * Nothing to do
         */
        if (empty($array)) {
            return false;
        }

        foreach ($array as $element) {
            /*
             * If elements are verified if they are exactly null and the element is:
             * - not an array
             * - not null
             * or elements are NOT verified if they are exactly null and the element is:
             * - not empty (e.g. null, '', 0, array())
             *
             * If one of the above is true, not all elements of given array are empty
             */
            if ((!is_array($element) && $strictNull && null !== $element) || !empty($element)) {
                return false;
            }
        }

        return true;
    }
public static function areAllValuesEmpty ( array $ array , $ strictNull = false ) { /*
         * No elements?
         * Nothing to do
         */ if ( empty ( $ array ) ) { return false ; } foreach ( $ array as $ element ) { /*
             * If elements are verified if they are exactly null and the element is:
             * - not an array
             * - not null
             * or elements are NOT verified if they are exactly null and the element is:
             * - not empty (e.g. null, '', 0, array())
             *
             * If one of the above is true, not all elements of given array are empty
             */ if ( ( ! is_array ( $ element ) && $ strictNull && null !== $ element ) || ! empty ( $ element ) ) { return false ; } } return true ; }
Returns information if given array is empty, iow. information if all elements of given array are empty

@param array $array      The array to verify
@param bool  $strictNull (optional) If is set to true elements are verified if they are null. Otherwise - only
if they are empty (e.g. null, '', 0, array()).
@return bool
Returns information if given array is empty iow . information if all elements of given array are empty