I might be missing an obvious function in SRL but, is there a way to tell if an RS Character is in a specified area?

Example:
Simba Code:
If PlayerIsInArea(SW_LOBBY) Then
WriteLn('Joining a game.');
else
SPS_WalkPath(SW_LOBBY)