why the `== null` check? the `=== 'pipe'` check will also fail in that case.