CASC-191

isValid method with simple implementation