Change $ismember to return 0 if true, 1 if false so it can be used in pricing calculations