takeUnlessEmpty

fun ItemStack.takeUnlessEmpty(): ItemStack?