no need of  else  here if not added self  add initiator to array initiator name if self is initiator associated to host initiator name  is false self  associate initiator to host initiator name  hostid 