public function __isset($name)
{
try {
return $this->{$name} !== null;
} catch (MemberAccessException $e) {
return false;
} catch (LeanMapperException $e) {
if ($this->isDetached() and $e->getCode() === Result::ERROR_MISSING_COLUMN) {
return false;
}
throw $e;
}
}