protected static function isArrayElementValidArray(array $array, $key, $validIfNotEmpty = true)
    {
        if (!isset($array[$key])) {
            return false;
        }

        if (!is_array($array[$key])) {
            return false;
        }

        return (!$validIfNotEmpty || !empty($array[$key]));
    }
protected static function isArrayElementValidArray(array $array, $key, $validIfNotEmpty = true)
    {
        if (!isset($array[$key])) {
            return false;
        }

        if (!is_array($array[$key])) {
            return false;
        }

        return (!$validIfNotEmpty || !empty($array[$key]));
    }
protected static function isArrayElementValidArray ( array $ array , $ key , $ validIfNotEmpty = true ) { if ( ! isset ( $ array [ $ key ] ) ) { return false ; } if ( ! is_array ( $ array [ $ key ] ) ) { return false ; } return ( ! $ validIfNotEmpty || ! empty ( $ array [ $ key ] ) ) ; }
Checks if the specified element, indicated by the key, is a valid array.

@since 3.0.0

@param array $array
@param string $key
@param bool $validIfNotEmpty

@return bool
Checks if the specified element indicated by the key is a valid array .