bool empty ( mixed $var );
empty function does two tasks:
- Checks if the variable is set in the symbols table.
- Checks if the variable is linked to data is in a falsey state.
- The variable to check.
TRUE when the variable either does not exist (it is not set) or its value is a falsey state.