input: Write a function to check if a given string contains another specified string. If the first string contains the second, return True; otherwise, return False. If either of the strings is empty, return False.
  def check_contains(query, word):
      if not query or not word:
          return False
      if word in query:
          return True
      return False
  
  assert check_contains("catering", "cat") == True
  assert check_contains("doghouse", "cat") == False
  assert check_contains("banana", "an") == True
  assert check_contains("", "cat") == False
  assert check_contains("popcorn", "") == False
  assert check_contains("stars", "star") == True
output: def check_contains(query, word):
      if not query or not word:
          return False
      if word in query:
          return True
      return False