Check that text is not nil