The problem is the same with & without the layout?

`$options` is defined inside the if statement