Added check if environment exist in pillar input