made tableExists: accept views
Added param checks to  ordered dictionary