From the help file:
$isid
Returns $true if an alias was called as an identifier, otherwise $false.