functionize install condition on plugin models.