(Pre-existing) Testing strlen(content) > 0 is a more expensive way of testing content[0] != '\0'; why read the contents of (potentially) a whole kB of data when you only need to read the first byte ?