Change $ismemberback to true / false. Gravity Forms, you're making this waaay too tricky.