def key_exists(dic, key):
    """Check if key exists in dictionary and return Boolean.
      Args:
          d         (dict): Dictionary which might contain key.
          key        (Any): Identifier.

      Returns:
          Boolean         : Whether dictionary contains key.
    """
    if key in dic:
        return True
    else:
        return False