If the cell doesn’t contain a string, T returns an empty string.
Examples
If cell A1 contains "text" and cell B1 is empty:
=T(A1) returns "text".
=T(B1) returns nothing.