Your solution is correct, but if you want to be 100% “clean”, you will never have to use isset (), since your variables should always be in scope. You should determine $ a = null at the beginning and check if it is null.
(, java). PHP, PHP, undefined ( , ). . php.ini, .