isDuplicate() is a method not an attribute

line 253