Why not simply `if not invalid_paypal_obj or getattr(settings, 'IGNORE_INVALID_PDT', False)`?