def gen_isempty(gen):
	"""
	Returns an identical generator and False if it has at least one value, True if it's empty
	:param gen: generator, any generator
	:return: (generator, Boolean), returns the same generator, and True if empty, False if not
	"""
	try:
		item = next(gen)

		def my_generator():
			yield item
			yield from gen

		return my_generator(), False
	except StopIteration:
		return (_ for _ in []), True