Fix if statement resulting in false if 0 (False) is passed