Add guard to text()