check is handle valid