protected static function initEmptyArray(array &$subjectArray, $key)
    {
        if (!isset($subjectArray[$key]) || !is_array($subjectArray[$key])) {
            $subjectArray[$key] = [];
        }

        return $subjectArray;
    }
protected static function initEmptyArray(array &$subjectArray, $key)
    {
        if (!isset($subjectArray[$key]) || !is_array($subjectArray[$key])) {
            $subjectArray[$key] = [];
        }

        return $subjectArray;
    }
protected static function initEmptyArray ( array & $ subjectArray , $ key ) { if ( ! isset ( $ subjectArray [ $ key ] ) || ! is_array ( $ subjectArray [ $ key ] ) ) { $ subjectArray [ $ key ] = [ ] ; } return $ subjectArray ; }
If the key does not exist at this depth, we will just create an empty array
to hold the next value, allowing us to create the arrays to hold final
values at the correct depth. Then we'll keep digging into the array.

@since 3.0.0

@param array $subjectArray Array to work check and work on.
@param string $key

@return array
If the key does not exist at this depth we will just create an empty array to hold the next value allowing us to create the arrays to hold final values at the correct depth . Then we ll keep digging into the array .