fixed if-test `if object.attribute:`