or maybe in this case you'd want `if hasattr(last_instance, 'logo') and last_instance.logo:` if you're also trying to filter to truthy `logo` values.