test
Added easier isValid-function.