(#12345) hiera enabled function for stdlib

adds ability to test if hiera is enabled in your environment