Question: I need to check if the data array has a specific key, I tried it like this:

```
@if ( ! empty($data['currentOffset']) )
    <p>Current Offset: {{ $currentOffset }} </p>
@else
    <p>The key `currentOffset` is not in the data array</p>
@endif

```

But I always get `<p>The key`currentOffset`is not in the data array</p>`.

Answer: 
I think you need something like this:

```
 @if ( isset($data[$currentOffset]) )
 ...

```
ternary

```
 @php ($currentOffset = isset($data['currentOffset']) ? $data['currentOffset'] : '')

```