lib: shorten skip condition