title: Find if key contains value in a map and return a boolean
body: <p>I have a map within an object in Groovy. The map has keys made from long strings, I want to see if a key in my map contains a certain value within the string and return a boolean. </p>
  
  <p>For example if my map key is 'X1234_RANDOM_STRING', if my parameter is X1234 I want to look in my map and see if the a key with that value exists and return true of false.</p>
  
  <p>Currently I am using .find however this doesn't return a boolean, I thought I could use .containsKey() but this won't work when my parameter may only contain a portion of the string.</p>
  
  <pre><code>map.find {
     it.key.toString().contains(code)
  }
  </code></pre>