Rewrite condition
Rewrite isTravisStatus and tests