public function removeCustomProperty(string $name) { if ($this->hasCustomProperty($name)) { $customProperties = $this->custom_properties; unset($customProperties[$name]); $this->custom_properties = $customProperties; } return $this; }