Changed the data ~= nil and table count methods to use next instead