add existence test for patch and unpatch methods