swapped out an empty string comparison with false after learning that, in Javascript, an empty string is equal to false