extracted common code from Site.IsFeatureActive and Web.IsFeatureActive in seperate function.