It's IMO clearer to use && if you want this.  Though, I don't see the problem with just eliminating the second if() clause - no content you'll return empty anyway, right?