Use the Validation factory
Shorten the ternary operator