Use length to simplify pipelineCheck.