Make code more readable with a isText variable.