public function isValid($value, $context = null) { if ((empty($value['day']) || empty($value['month'])) && $this->isRequired()) { $this->_messages[] = "Birthdays must include a month and a date."; return false; } return parent::isValid($value, $context); }