API:UnitExists

__NOTOC__
Determines if a unit exists
exists = UnitExists(unit);
== Parameters ==
=== Arguments ===
:;unit
::UnitId - the unit to query
=== Returns ===
:;exists
::Boolean value. true if the unit exists, false otherwise
== Example ==
if ( not UnitExists("target") ) then
 SendChatMessage("I have no target :(", "SAY" );
end
UnitExists