Added empty string check

Added check for empty string rather than "" equaling falseiness.