Is there a difference between isset and !empty. If I do this double boolean check, is it correct this way or redundant? and is there a shorter way
isset
!empty
The accepted answer is not correct.
isset() is NOT equivalent to !empty().
You will create some rather unpleasant and hard to debug bugs if you go down this route. e.g. try running this code:
https://3v4l.org/J4nBb