added is_environment function to utility helpers