Revert "Remove HasText"

This reverts commit dffb4a94f5b163b4ff71ed95dc88641365a07830.