Checking if depth is greater than the items level