public function rule_required($a) { if ($a === '' || $a === false || $a === null) { return $this->fail('must not be empty'); } }