Is it possible to check if a property exists which are set using magic setter?
class Test { private $vars; public function __set($key, $value) {
Use __isset() and isset():
public function __isset($key) { return isset($this->vars[$key]); }
$test = new Test; $test->myvar = 'yay!'; if (isset($test->myvar)) { }