This will work to find if a character array is empty. It probably is also the fastest.
if(text[0] == '\0') {}
This will also be fast if the text
array is empty. If it contains characters it needs to count all the characters in it first.
if(strlen(text) == 0) {}