changing "is None" condition to "not thing" to catch empty list
Merge pull request #445 from Kae7in/otherapi

changing "is None" condition to "not thing" to catch empty list