Map.Exists (gb.map)
Function Exists ( Name As String [ , Mode As Integer ] ) As Boolean
Returns if a given 
_MapShape or 
_MapLayer Layer actually exists
  - 
Name: Layer name to search, whether Shape or Tile Layer
 
  - 
Mode: Name comparison. See String comparison methods for more details.