public function __isset($name)
    {
        if (!in_array($name, $this->allowedFields)) {
            throw new \InvalidArgumentException(
                "The field '$name' is not allowed for this entity."
            );
        }
        
        return isset($this->values[$name]);
    }