Returns
.true if the relation
contains the member item
item,
.false.
If
index is specified,
hasItem
will only return
.true if the relation contains the pairing of
item associated with index
index.
Item and index equality is determined by using the
== method.