Checks whether given variable is of type entity.
Example:
if ( IsEntity( variable ) ) ...
* = mandatory