Minor fix
Merge pull request #331 from SimTk/check-empty

Checking for empty states