To remove the warning, read the code and find the “if” statement
Now replace: !isset with: is_scalar
The above line will become:
Save the file and run it. You will see that the warning has disappeared.
Note: !isset is just an example. It could be anything in your code. This tweak will suppress the warning.