added comments for isActive helper