Added ifNotOk(f) method