Function SpriteExists(sprite)

Returns true if the sprite id is a valid sprite id