add isUnique function without test