Is very useful to know if a variable exists, this can avoid security and functionality issues.
The way to know if a PHP variable exists is with the function isset():
if variable exists the function returns true