table checks in top()
Merge pull request #81 from yetanotherhacker/tablecheck

table checks in top()