public function isValid($name) { if (preg_match($this->regEx, $name) === 0) { return false; } return true; }