added isSuccess method to doc