I need to check if value is defined as anything, including null. isset treats null values as undefined and returns false. Take the following as an
isset
false
IIRC, you can use get_defined_vars() for this:
$foo = NULL; $vars = get_defined_vars(); if (array_key_exists('bar', $vars)) {}; // Should evaluate to FALSE if (array_key_exists('foo', $vars)) {}; // Should evaluate to TRUE