isValidPatch