def get_near_items(tree, tree_key):
    """
    Check both possible neighbors for key
    in a binary tree
    """
    try:
        yield tree.floor_item(tree_key)
    except KeyError:
        pass
    try:
        yield tree.ceiling_item(tree_key)
    except KeyError:
        pass
