function MaterialExists( material )

Returns true if the material id is an existing material