Fixed boolean comparison to properly handle empty strings. The comparison
on line 20 now follows the style of the comparison on line 31.