Make isDuplicate() adhere to standards a bit better