decide whether to show dropdown, based on passed depth argument