public static function keyNotEmpty($value, $key): bool
    {
        if (!static::isArrayAccessible($value)) {
            return false;
        }

        return isset($value[$key]) && !empty($value[$key]);
    }
public static function keyNotEmpty($value, $key): bool
    {
        if (!static::isArrayAccessible($value)) {
            return false;
        }

        return isset($value[$key]) && !empty($value[$key]);
    }
public static function keyNotEmpty ( $ value , $ key ) : bool { if ( ! static :: isArrayAccessible ( $ value ) ) { return false ; } return isset ( $ value [ $ key ] ) && ! empty ( $ value [ $ key ] ) ; }
Checks if value is array accessible with a non-empty key

@param mixed $value The value
@param mixed $key   The key

@return bool
Checks if value is array accessible with a non - empty key