Added IsQueueEmpty function

Function returns true if the given tablename is empty.