public function hasProperty($name)
    {
        static $vars = null;
        if (! $vars) {
            $vars = get_object_vars($this);
        }

        return array_key_exists($name, $vars);
    }