its just a check to spawn a mob or not