[refactor] Simplify code

There is no need for a conditional statement.
The default value of the property (null) is also the default return value of the `array_get()` helper.