Make is_active a property

And use it in some places.