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;
    }