isActive re-factor