check is BST