protected function isPropertyEnabled(string $property) : bool
{
if (null === $this->properties) {
// to ensure sanity, nested properties must still be explicitly enabled
return !$this->isPropertyNested($property);
}
return array_key_exists($property, $this->properties);
}