Implemented isValid