Did you mean if(!isSuccess(...)) ?