Fix issue where a variable were not defined

### What does it do ?

Define a variable.

### Why is it needed ?

In some conditions, we try to use an undefined variable, causing PHP notices.