code: func (session *Session) IsTableEmpty(bean interface{}) (bool, error) {
  	if session.isAutoClose {
  		defer session.Close()
  	}
  	return session.isTableEmpty(session.engine.TableName(bean))
  }
docs: // IsTableEmpty if table have any records