a more pythonic if (no need of 'is not None'). Issue #3