code: def check_if_branch_exist(db, root_hash, key_prefix):
      
      validate_is_bytes(key_prefix)
  
      return _check_if_branch_exist(db, root_hash, encode_to_bin(key_prefix))
docs: Given a key prefix, return whether this prefix is
      the prefix of an existing key in the trie.