idiomatic check for empty string