Hi, I think there might be some context missing here but this error occurs when PHP code is written incorrectly.
I normally run into this one myself when I've used the "empty" function incorrectly. It only accepts variables and so you can't make other function calls and pass the result in as an argument to it, you need to assign it to a variable first.
----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!