protected function validateBool($field)
    {
        $value = $this->getSubmitted($field);

        if (!isset($value)) {
            $this->unsetSubmitted($field);
            return null;
        }

        $this->setSubmitted($field, (int) filter_var($value, FILTER_VALIDATE_BOOLEAN));
        return true;
    }