def a_row_exists(self, doctype):
		return self.sql("select name from `tab{doctype}` limit 1".format(doctype=doctype))
Returns True if atleast one row exists.
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.a_row_exists