The isAdd check expression here is redundant; the if statement around it already takes care of that.