Revert "slightly different conditional for has()"

This reverts commit c93bf25e60426184444bb14c21839c2faa9f4877.