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