Use empty() to avoid PHP notices for unset variables.