public function check(User $ux) { if (preg_match('/a|e|i|o|u/i', $ux->getUsername())) { return true; } return false; }