support Python 2.x because they do not support dunder bool