Allows to call the `validate` method statically

As the validator implementation might not vary, I find it cumbersome to have to instantiate an object for the validator.

In addition to being easier to write, this PR eliminates initialization of the same array several times if the validator is used several times.