Using boolean syntax to shorten validators