validate() === null; } public function validate() : ?string { if ($this->reply_to === null) { return 'Reply to is not set in email.'; } if ($this->to === null) { return 'Target email is not set.'; } return null; } }