docs: update API docs with hasRelation method.