updated isSuccess method docblock