public function validate($subject): bool
    {
        if (\is_array($this->schema['required'])) {
            foreach ($this->schema['required'] as $propertyName) {
                if (!\array_key_exists($propertyName, $subject)) {
                    return false;
                }
            }
        }
        return true;
    }