title: How to check if element in array contains any values from a list Python
body: <p>I have a list of words:</p>
  <pre><code>list1 = ['foo', 'baz', 'bat']
  </code></pre>
  <p>And an array of strings:</p>
  <pre><code>list2 = ['foo word word word', 'word baz word word', 'word word word word', 'word word bat word']
  string_arr = np.array(list2)
  </code></pre>
  <p>I want to enumerate through the array and return a boolean if the element in the array contains any of the values in the list. The output to be a list of booleans:</p>
  <pre><code>[True, True, False, True]
  </code></pre>
  <p>Right now all I have is this code which just gives me a list of indices, which I don't want:</p>
  <pre><code>idx_mask = [idx for idx, element in enumerate(string_arr) if any(x in element for x in list1)]
  </code></pre>
  <p>How can I just get a list of booleans?</p>