title: How to return boolean value from a function in Kotlin
body: <p>I am new to kotlin. 
  I am reading a key and value from properties file, in a kotlin program. But I don't know how to directly return the value of a key.
  Please find the application.yml and abc.class(this is a kotlin class) below.</p>
  
  <p>application.yml</p>
  
  <pre><code>abcconfig:
    isabcEnabled:
      default: false
      xyz: true
      def: true
  </code></pre>
  
  <p>abc.class</p>
  
  <pre><code>import org.springframework.boot.context.properties.ConfigurationProperties
  import org.springframework.stereotype.Component
  
  @Component
  @ConfigurationProperties(prefix = "abcconfig")
  class AbcConfig {
  
      private var abcEnabled: Map&lt;String, Boolean&gt; = mutableMapOf()
  
      fun getabcEnabledValue(siteId: String?): Boolean {
  
          val abc: Boolean
          val key: String? = if (abcEnabled.containsKey(key)) key else "default"
  
          abc = abcEnabled[key]
          return abc
      }
  
      fun setAbcEnabled(abcEnabled: Map&lt;String, Boolean&gt;) {
          this.abcEnabled = abcEnabled
      }
  
  }
  </code></pre>